AurelienRoy / ardupilot_sitl_gazebo_plugin

Other
33 stars 40 forks source link

Trouble Compiling MAVROS #8

Open munkarkin96 opened 7 years ago

munkarkin96 commented 7 years ago

Hi,

By using Aurelian Roy's helper scripts to setup Gazebo SITL/ROS, I've been experiencing issues to compile the workspace.

Link: https://github.com/AurelienRoy/ardupilot_sitl_ros_tutorial/tree/master/scripts

What I did:

(src has been initialised) wstool set -t src mavros --git https://github.com/alexbuyval/mavros.git wstool update -t src

The issue is in step 5, when catkin_make.

OS: Ubuntu 14.04.3 LTS

The same error will occur if I compile mavros from other sources such as: git clone https://github.com/mavlink/mavros.git git clone https://github.com/erlerobot/mavros.git

I have tried installing the whole OS again from scratch for 2 times but the same error occur.

Please advice.

Error Message :

Scanning dependencies of target mavconn [ 4%] Building CXX object mavros/libmavconn/CMakeFiles/mavconn.dir/src/mavlink_helpers.cpp.o [ 4%] Building CXX object mavros/libmavconn/CMakeFiles/mavconn.dir/src/interface.cpp.o /home/karkin96/catkin_ws/src/mavros/libmavconn/src/interface.cpp: In member function ‘mavconn::MsgBuffer mavconn::MAVConnInterface::new_msgbuffer(const mavlink_message_t, uint8_t, uint8_t)’: /home/karkin96/catkin_ws/src/mavros/libmavconn/src/interface.cpp:89:28: error: too few arguments to function ‘uint16_t mavlink_finalize_message_chan(mavlink_message_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)’ mavlink_crcs[msg.msgid]); ^ In file included from /opt/ros/indigo/include/mavlink/v1.0/ardupilotmega/../protocol.h:85:0, from /opt/ros/indigo/include/mavlink/v1.0/ardupilotmega/ardupilotmega.h:30, from /opt/ros/indigo/include/mavlink/v1.0/ardupilotmega/mavlink.h:33, from /home/karkin96/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:56, from /home/karkin96/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:38, from /home/karkin96/catkin_ws/src/mavros/libmavconn/src/interface.cpp:22: /opt/ros/indigo/include/mavlink/v1.0/ardupilotmega/../mavlink_helpers.h:68:25: note: declared here MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t msg, uint8_t system_id, uint8_t component_id, ^ make[2]: [mavros/libmavconn/CMakeFiles/mavconn.dir/src/interface.cpp.o] Error 1 make[1]: [mavros/libmavconn/CMakeFiles/mavconn.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed Rospack List:

actionlib /opt/ros/indigo/share/actionlib actionlib_msgs /opt/ros/indigo/share/actionlib_msgs actionlib_tutorials /opt/ros/indigo/share/actionlib_tutorials angles /opt/ros/indigo/share/angles arducopter_sitl_ros /home/karkin96/catkin_ws/src/arducopter_sitl_ros bond /opt/ros/indigo/share/bond bondcpp /opt/ros/indigo/share/bondcpp bondpy /opt/ros/indigo/share/bondpy camera_calibration /opt/ros/indigo/share/camera_calibration camera_calibration_parsers /opt/ros/indigo/share/camera_calibration_parsers camera_info_manager /opt/ros/indigo/share/camera_info_manager catkin /opt/ros/indigo/share/catkin catkin_simple /home/karkin96/catkin_ws/src/catkin_simple class_loader /opt/ros/indigo/share/class_loader cmake_modules /opt/ros/indigo/share/cmake_modules collada_parser /opt/ros/indigo/share/collada_parser collada_urdf /opt/ros/indigo/share/collada_urdf compressed_depth_image_transport /opt/ros/indigo/share/compressed_depth_image_transport compressed_image_transport /opt/ros/indigo/share/compressed_image_transport control_msgs /opt/ros/indigo/share/control_msgs cpp_common /opt/ros/indigo/share/cpp_common cv_bridge /opt/ros/indigo/share/cv_bridge depth_image_proc /opt/ros/indigo/share/depth_image_proc diagnostic_aggregator /opt/ros/indigo/share/diagnostic_aggregator diagnostic_analysis /opt/ros/indigo/share/diagnostic_analysis diagnostic_common_diagnostics /opt/ros/indigo/share/diagnostic_common_diagnostics diagnostic_msgs /opt/ros/indigo/share/diagnostic_msgs diagnostic_updater /opt/ros/indigo/share/diagnostic_updater driver_base /opt/ros/indigo/share/driver_base dynamic_reconfigure /opt/ros/indigo/share/dynamic_reconfigure eigen_conversions /opt/ros/indigo/share/eigen_conversions eigen_stl_containers /opt/ros/indigo/share/eigen_stl_containers filters /opt/ros/indigo/share/filters gazebo_msgs /opt/ros/indigo/share/gazebo_msgs gazebo_plugins /opt/ros/indigo/share/gazebo_plugins gazebo_ros /opt/ros/indigo/share/gazebo_ros gencpp /opt/ros/indigo/share/gencpp genlisp /opt/ros/indigo/share/genlisp genmsg /opt/ros/indigo/share/genmsg genpy /opt/ros/indigo/share/genpy geodesy /opt/ros/indigo/share/geodesy geographic_msgs /opt/ros/indigo/share/geographic_msgs geometric_shapes /opt/ros/indigo/share/geometric_shapes geometry_msgs /opt/ros/indigo/share/geometry_msgs gl_dependency /opt/ros/indigo/share/gl_dependency glog_catkin /home/karkin96/catkin_ws/src/glog_catkin image_geometry /opt/ros/indigo/share/image_geometry image_proc /opt/ros/indigo/share/image_proc image_rotate /opt/ros/indigo/share/image_rotate image_transport /opt/ros/indigo/share/image_transport image_view /opt/ros/indigo/share/image_view interactive_marker_tutorials /opt/ros/indigo/share/interactive_marker_tutorials interactive_markers /opt/ros/indigo/share/interactive_markers joint_state_publisher /opt/ros/indigo/share/joint_state_publisher joy /opt/ros/indigo/share/joy kdl_conversions /opt/ros/indigo/share/kdl_conversions kdl_parser /opt/ros/indigo/share/kdl_parser laser_assembler /opt/ros/indigo/share/laser_assembler laser_filters /opt/ros/indigo/share/laser_filters laser_geometry /opt/ros/indigo/share/laser_geometry libmavconn /home/karkin96/catkin_ws/src/mavros/libmavconn librviz_tutorial /opt/ros/indigo/share/librviz_tutorial map_msgs /opt/ros/indigo/share/map_msgs mav_msgs /home/karkin96/catkin_ws/src/mav_comm/mav_msgs mavlink /opt/ros/indigo/share/mavlink mavros /home/karkin96/catkin_ws/src/mavros/mavros mavros_extras /home/karkin96/catkin_ws/src/mavros/mavros_extras mavros_msgs /opt/ros/indigo/share/mavros_msgs media_export /opt/ros/indigo/share/media_export message_filters /opt/ros/indigo/share/message_filters message_generation /opt/ros/indigo/share/message_generation message_runtime /opt/ros/indigo/share/message_runtime mk /opt/ros/indigo/share/mk nav_msgs /opt/ros/indigo/share/nav_msgs nodelet /opt/ros/indigo/share/nodelet nodelet_topic_tools /opt/ros/indigo/share/nodelet_topic_tools nodelet_tutorial_math /opt/ros/indigo/share/nodelet_tutorial_math octomap /opt/ros/indigo/share/octomap octomap_msgs /opt/ros/indigo/share/octomap_msgs octomap_ros /opt/ros/indigo/share/octomap_ros orocos_kdl /opt/ros/indigo/share/orocos_kdl pcl_conversions /opt/ros/indigo/share/pcl_conversions pcl_msgs /opt/ros/indigo/share/pcl_msgs pcl_ros /opt/ros/indigo/share/pcl_ros planning_msgs /home/karkin96/catkin_ws/src/mav_comm/planning_msgs pluginlib /opt/ros/indigo/share/pluginlib pluginlib_tutorials /opt/ros/indigo/share/pluginlib_tutorials pointcloud_to_laserscan /opt/ros/indigo/share/pointcloud_to_laserscan polled_camera /opt/ros/indigo/share/polled_camera pr2_description /opt/ros/indigo/share/pr2_description python_orocos_kdl /opt/ros/indigo/share/python_orocos_kdl python_qt_binding /opt/ros/indigo/share/python_qt_binding qt_dotgraph /opt/ros/indigo/share/qt_dotgraph qt_gui /opt/ros/indigo/share/qt_gui qt_gui_cpp /opt/ros/indigo/share/qt_gui_cpp qt_gui_py_common /opt/ros/indigo/share/qt_gui_py_common qwt_dependency /opt/ros/indigo/share/qwt_dependency random_numbers /opt/ros/indigo/share/random_numbers resource_retriever /opt/ros/indigo/share/resource_retriever robot_state_publisher /opt/ros/indigo/share/robot_state_publisher rosbag /opt/ros/indigo/share/rosbag rosbag_migration_rule /opt/ros/indigo/share/rosbag_migration_rule rosbag_storage /opt/ros/indigo/share/rosbag_storage rosbash /opt/ros/indigo/share/rosbash rosboost_cfg /opt/ros/indigo/share/rosboost_cfg rosbuild /opt/ros/indigo/share/rosbuild rosclean /opt/ros/indigo/share/rosclean rosconsole /opt/ros/indigo/share/rosconsole rosconsole_bridge /opt/ros/indigo/share/rosconsole_bridge roscpp /opt/ros/indigo/share/roscpp roscpp_serialization /opt/ros/indigo/share/roscpp_serialization roscpp_traits /opt/ros/indigo/share/roscpp_traits roscpp_tutorials /opt/ros/indigo/share/roscpp_tutorials roscreate /opt/ros/indigo/share/roscreate rosgraph /opt/ros/indigo/share/rosgraph rosgraph_msgs /opt/ros/indigo/share/rosgraph_msgs roslang /opt/ros/indigo/share/roslang roslaunch /opt/ros/indigo/share/roslaunch roslib /opt/ros/indigo/share/roslib roslint /opt/ros/indigo/share/roslint roslisp /opt/ros/indigo/share/roslisp roslz4 /opt/ros/indigo/share/roslz4 rosmake /opt/ros/indigo/share/rosmake rosmaster /opt/ros/indigo/share/rosmaster rosmsg /opt/ros/indigo/share/rosmsg rosnode /opt/ros/indigo/share/rosnode rosout /opt/ros/indigo/share/rosout rospack /opt/ros/indigo/share/rospack rosparam /opt/ros/indigo/share/rosparam rospy /opt/ros/indigo/share/rospy rospy_tutorials /opt/ros/indigo/share/rospy_tutorials rosservice /opt/ros/indigo/share/rosservice rostest /opt/ros/indigo/share/rostest rostime /opt/ros/indigo/share/rostime rostopic /opt/ros/indigo/share/rostopic rosunit /opt/ros/indigo/share/rosunit roswtf /opt/ros/indigo/share/roswtf rotors_control /home/karkin96/catkin_ws/src/rotors_simulator/rotors_control rotors_description /home/karkin96/catkin_ws/src/rotors_simulator/rotors_description rotors_gazebo /home/karkin96/catkin_ws/src/rotors_simulator/rotors_gazebo rotors_gazebo_plugins /home/karkin96/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins rotors_joy_interface /home/karkin96/catkin_ws/src/rotors_simulator/rotors_joy_interface rotors_model /home/karkin96/catkin_ws/src/rotors_simulator/rotors_model rqt_action /opt/ros/indigo/share/rqt_action rqt_bag /opt/ros/indigo/share/rqt_bag rqt_bag_plugins /opt/ros/indigo/share/rqt_bag_plugins rqt_console /opt/ros/indigo/share/rqt_console rqt_dep /opt/ros/indigo/share/rqt_dep rqt_graph /opt/ros/indigo/share/rqt_graph rqt_gui /opt/ros/indigo/share/rqt_gui rqt_gui_cpp /opt/ros/indigo/share/rqt_gui_cpp rqt_gui_py /opt/ros/indigo/share/rqt_gui_py rqt_image_view /opt/ros/indigo/share/rqt_image_view rqt_launch /opt/ros/indigo/share/rqt_launch rqt_logger_level /opt/ros/indigo/share/rqt_logger_level rqt_moveit /opt/ros/indigo/share/rqt_moveit rqt_msg /opt/ros/indigo/share/rqt_msg rqt_nav_view /opt/ros/indigo/share/rqt_nav_view rqt_plot /opt/ros/indigo/share/rqt_plot rqt_pose_view /opt/ros/indigo/share/rqt_pose_view rqt_publisher /opt/ros/indigo/share/rqt_publisher rqt_py_common /opt/ros/indigo/share/rqt_py_common rqt_py_console /opt/ros/indigo/share/rqt_py_console rqt_reconfigure /opt/ros/indigo/share/rqt_reconfigure rqt_robot_dashboard /opt/ros/indigo/share/rqt_robot_dashboard rqt_robot_monitor /opt/ros/indigo/share/rqt_robot_monitor rqt_robot_steering /opt/ros/indigo/share/rqt_robot_steering rqt_runtime_monitor /opt/ros/indigo/share/rqt_runtime_monitor rqt_rviz /opt/ros/indigo/share/rqt_rviz rqt_service_caller /opt/ros/indigo/share/rqt_service_caller rqt_shell /opt/ros/indigo/share/rqt_shell rqt_srv /opt/ros/indigo/share/rqt_srv rqt_tf_tree /opt/ros/indigo/share/rqt_tf_tree rqt_top /opt/ros/indigo/share/rqt_top rqt_topic /opt/ros/indigo/share/rqt_topic rqt_web /opt/ros/indigo/share/rqt_web rviz /opt/ros/indigo/share/rviz rviz_plugin_tutorials /opt/ros/indigo/share/rviz_plugin_tutorials rviz_python_tutorial /opt/ros/indigo/share/rviz_python_tutorial self_test /opt/ros/indigo/share/self_test sensor_msgs /opt/ros/indigo/share/sensor_msgs shape_msgs /opt/ros/indigo/share/shape_msgs smach /opt/ros/indigo/share/smach smach_msgs /opt/ros/indigo/share/smach_msgs smach_ros /opt/ros/indigo/share/smach_ros smclib /opt/ros/indigo/share/smclib stage /opt/ros/indigo/share/stage stage_ros /opt/ros/indigo/share/stage_ros std_msgs /opt/ros/indigo/share/std_msgs std_srvs /opt/ros/indigo/share/std_srvs stereo_image_proc /opt/ros/indigo/share/stereo_image_proc stereo_msgs /opt/ros/indigo/share/stereo_msgs test_mavros /home/karkin96/catkin_ws/src/mavros/test_mavros tf /opt/ros/indigo/share/tf tf2 /opt/ros/indigo/share/tf2 tf2_geometry_msgs /opt/ros/indigo/share/tf2_geometry_msgs tf2_kdl /opt/ros/indigo/share/tf2_kdl tf2_msgs /opt/ros/indigo/share/tf2_msgs tf2_py /opt/ros/indigo/share/tf2_py tf2_ros /opt/ros/indigo/share/tf2_ros tf2_sensor_msgs /opt/ros/indigo/share/tf2_sensor_msgs tf_conversions /opt/ros/indigo/share/tf_conversions theora_image_transport /opt/ros/indigo/share/theora_image_transport topic_tools /opt/ros/indigo/share/topic_tools trajectory_msgs /opt/ros/indigo/share/trajectory_msgs turtle_actionlib /opt/ros/indigo/share/turtle_actionlib turtle_tf /opt/ros/indigo/share/turtle_tf turtle_tf2 /opt/ros/indigo/share/turtle_tf2 turtlesim /opt/ros/indigo/share/turtlesim unique_id /opt/ros/indigo/share/unique_id urdf /opt/ros/indigo/share/urdf urdf_parser_plugin /opt/ros/indigo/share/urdf_parser_plugin urdf_tutorial /opt/ros/indigo/share/urdf_tutorial uuid_msgs /opt/ros/indigo/share/uuid_msgs visualization_marker_tutorials /opt/ros/indigo/share/visualization_marker_tutorials visualization_msgs /opt/ros/indigo/share/visualization_msgs xacro /opt/ros/indigo/share/xacro xmlrpcpp /opt/ros/indigo/share/xmlrpcpp