Skip to content
Snippets Groups Projects
Commit 170bad39 authored by bucyril's avatar bucyril
Browse files

jjdsaojfd

parent 6756da57
No related branches found
No related tags found
No related merge requests found
3,cfThree,0/72/2M,0,0,0,1,1,1
5,cfFour,0/99/2M,-1,0,0,0,1,1
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
using namespace d_fall_pps; using namespace d_fall_pps;
//name of the student team
std::string teamName;
//name of the crazyflie, as specified in Vicon //name of the crazyflie, as specified in Vicon
std::string crazyflieName; std::string crazyflieName;
//studentID, gives namespace and identifier in CentralManagerService //studentID, gives namespace and identifier in CentralManagerService
...@@ -93,7 +91,7 @@ void viconCallback(const ViconData& viconData) { ...@@ -93,7 +91,7 @@ void viconCallback(const ViconData& viconData) {
//ROS_INFO_STREAM(data); //ROS_INFO_STREAM(data);
if(data.crazyflieName == crazyflieName) { if(data.crazyflieName == context.crazyflieName) {
Controller controllerCall; Controller controllerCall;
controllerCall.request.ownCrazyflie = data; controllerCall.request.ownCrazyflie = data;
...@@ -135,10 +133,6 @@ void viconCallback(const ViconData& viconData) { ...@@ -135,10 +133,6 @@ void viconCallback(const ViconData& viconData) {
} }
void loadParameters(ros::NodeHandle& nodeHandle) { void loadParameters(ros::NodeHandle& nodeHandle) {
if(!nodeHandle.getParam("teamName", teamName)) {
ROS_ERROR("Failed to get teamName");
}
if(!nodeHandle.getParam("crazyFlieName", crazyflieName)) { if(!nodeHandle.getParam("crazyFlieName", crazyflieName)) {
ROS_ERROR("Failed to get crazyFlieName"); ROS_ERROR("Failed to get crazyFlieName");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment