wilselby / ROS_quadrotor_simulator

Quadrotor simulator using ROS, Gazebo, and RVIZ
269 stars 123 forks source link

Errors << moveit_simple_controller_manager #36

Open NalinLuthra opened 5 years ago

NalinLuthra commented 5 years ago

In file included from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:41:0, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:39: /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:71:28: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11 explicit operator bool() const ^ In file included from /opt/ros/kinetic/include/moveit/macros/class_forward.h:40:0, from /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:43, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:41, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:39: /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:52:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##Ptr; \ ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:102:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(MoveItControllerHandle); ^ /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##ConstPtr; ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:102:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(MoveItControllerHandle); ^ /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:52:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##Ptr; \ ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:144:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(MoveItControllerManager); ^ /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##ConstPtr; ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:144:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(MoveItControllerManager); ^ In file included from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:41:0, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:39: /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:185:11: error: ‘MoveItControllerHandlePtr’ does not name a type virtual MoveItControllerHandlePtr getControllerHandle(const std::string& name) = 0; ^ In file included from /opt/ros/kinetic/include/moveit/macros/class_forward.h:40:0, from /opt/ros/kinetic/include/moveit/controller_manager/controller_manager.h:43, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:41, from /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:39: /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:52:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##Ptr; \ ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:63:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(ActionBasedControllerHandleBase); ^ /opt/ros/kinetic/include/moveit/macros/declare_ptr.h:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr Name##ConstPtr; ^ /opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’ MOVEIT_DECLARE_PTR(C, C); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/include/moveit_simple_controller_manager/action_based_controller_handle.h:63:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’ MOVEIT_CLASS_FORWARD(ActionBasedControllerHandleBase); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:165:37: error: ‘MoveItControllerHandlePtr’ in namespace ‘moveit_controller_manager’ does not name a type virtual moveit_controller_manager::MoveItControllerHandlePtr getControllerHandle(const std::string &name) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controllermanager.cpp:234:24: error: ‘ActionBasedControllerHandleBasePtr’ was not declared in this scope std::map<std::string, ActionBasedControllerHandleBasePtr> controllers; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controllermanager.cpp:234:58: error: template argument 2 is invalid std::map<std::string, ActionBasedControllerHandleBasePtr> controllers; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:234:58: error: template argument 4 is invalid /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp: In constructor ‘moveit_simple_controller_manager::MoveItSimpleControllerManager::MoveItSimpleControllerManager()’: /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:110:5: error: ‘ActionBasedControllerHandleBasePtr’ was not declared in this scope ActionBasedControllerHandleBasePtr new_handle; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:113:6: error: ‘new_handle’ was not declared in this scope new_handle.reset(new GripperControllerHandle(name, action_ns)); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:125:19: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::cxx11::string {aka std::cxx11::basicstring}’) controllers[name] = new_handle; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:130:6: error: ‘new_handle’ was not declared in this scope new_handle.reset(new FollowJointTrajectoryControllerHandle(name, action_ns)); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:134:19: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::cxx11::string {aka std::cxx11::basicstring}’) controllers[name] = new_handle; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:139:6: error: ‘new_handle’ was not declared in this scope new_handle.reset(new MultiDofFollowJointTrajectoryControllerHandle(name, action_ns)); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:143:19: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::cxx11::string {aka std::cxx11::basicstring}’) controllers[name] = new_handle; ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:149:18: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::cxx11::string {aka std::cxx11::basicstring}’) controllers[name]->addJoint(std::string(controller_list[i]["joints"][j])); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp: In member function ‘virtual void moveit_simple_controller_manager::MoveItSimpleControllerManager::getControllersList(std::vector<std::__cxx11::basic_string >&)’: /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:30: error: ‘ActionBasedControllerHandleBasePtr’ was not declared in this scope for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:64: error: template argument 2 is invalid for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:64: error: template argument 4 is invalid /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:82: error: expected ‘;’ before ‘it’ for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:82: error: ‘it’ was not declared in this scope /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:100: error: request for member ‘begin’ in ‘((moveit_simple_controller_manager::MoveItSimpleControllerManager)this)->moveit_simple_controllermanager::MoveItSimpleControllerManager::controllers’, which is of non-class type ‘int’ for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:129: error: request for member ‘end’ in ‘((moveit_simple_controller_manager::MoveItSimpleControllerManager)this)->moveit_simple_controllermanager::MoveItSimpleControllerManager::controllers’, which is of non-class type ‘int’ for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:135: error: expected ‘)’ before ‘;’ token for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:179:139: error: ‘it’ was not declared in this scope for (std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.begin() ; it != controllers_.end() ; ++it) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp: In member function ‘virtual void moveit_simple_controller_manager::MoveItSimpleControllerManager::getControllerJoints(const string&, std::vector<std::__cxx11::basic_string >&)’: /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:205:25: error: ‘ActionBasedControllerHandleBasePtr’ was not declared in this scope std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.find(name); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:205:59: error: template argument 2 is invalid std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.find(name); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:205:59: error: template argument 4 is invalid /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:205:77: error: expected initializer before ‘it’ std::map<std::string, ActionBasedControllerHandleBasePtr>::constiterator it = controllers.find(name); ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controllermanager.cpp:206:7: error: ‘it’ was not declared in this scope if (it != controllers.end()) ^ /home/nalin/Navigation/catkin_ws/src/ROS_quadrotor_simulator/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp:206:26: error: request for member ‘end’ in ‘((moveit_simple_controller_manager::MoveItSimpleControllerManager*)this)->moveit_simple_controllermanager::MoveItSimpleControllerManager::controllers’, which is of non-class type ‘int’ if (it != controllers_.end()) ^ make[2]: [CMakeFiles/moveit_simple_controller_manager.dir/src/moveit_simple_controller_manager.cpp.o] Error 1 make[1]: [CMakeFiles/moveit_simple_controller_manager.dir/all] Error 2 make: *** [all] Error 2

NalinLuthra commented 5 years ago

I am not able to fix this issue,

Urgent help required

tahsinkose commented 5 years ago

It simply says it requires c++11. Try adding c++11 flag in the beginning of CMakeLists of moveit_simple_controller_manager.

 set (CMAKE_CXX_STANDARD 11)