diff --git a/pps_ws/src/d_fall_pps/param/Crazyflie.db b/pps_ws/src/d_fall_pps/param/Crazyflie.db new file mode 100644 index 0000000000000000000000000000000000000000..9192d0d635d3e0497f17a63c7aeb2557ea36cac8 --- /dev/null +++ b/pps_ws/src/d_fall_pps/param/Crazyflie.db @@ -0,0 +1,2 @@ +3,cfThree,0/72/2M,0,0,0,1,1,1 +5,cfFour,0/99/2M,-1,0,0,0,1,1 diff --git a/pps_ws/src/d_fall_pps/src/PPSClient.cpp b/pps_ws/src/d_fall_pps/src/PPSClient.cpp index a76b60d353e8f141ca0a9697beccb58b6a7841c7..7797b13d5b773712d3a43080be4200426b22bf06 100755 --- a/pps_ws/src/d_fall_pps/src/PPSClient.cpp +++ b/pps_ws/src/d_fall_pps/src/PPSClient.cpp @@ -39,8 +39,6 @@ using namespace d_fall_pps; -//name of the student team -std::string teamName; //name of the crazyflie, as specified in Vicon std::string crazyflieName; //studentID, gives namespace and identifier in CentralManagerService @@ -93,7 +91,7 @@ void viconCallback(const ViconData& viconData) { //ROS_INFO_STREAM(data); - if(data.crazyflieName == crazyflieName) { + if(data.crazyflieName == context.crazyflieName) { Controller controllerCall; controllerCall.request.ownCrazyflie = data; @@ -135,10 +133,6 @@ void viconCallback(const ViconData& viconData) { } void loadParameters(ros::NodeHandle& nodeHandle) { - if(!nodeHandle.getParam("teamName", teamName)) { - ROS_ERROR("Failed to get teamName"); - } - if(!nodeHandle.getParam("crazyFlieName", crazyflieName)) { ROS_ERROR("Failed to get crazyFlieName"); }