About catkin_make failure [closed]

asked 2017-05-28 19:43:07 -0500

Jacky4869 gravatar image

updated 2017-05-30 19:09:42 -0500

I am a beginner to ROS

when i was following the tutorial on website http://wiki.ros.org/ROS/Tutorials/Ins...

after entering

$ cd ~/catkin_ws/

$ catkin_make

It worked fine at first and i got an error as follows: Although it gave me a lot of errors, i got a 100% built. So confused...

I see many "gazebo_ros not declared" error, how to fix this? And "expected ‘,’ or ‘...’ before ‘&’ token" error like this, to me more like code error. I have not written any code yet. How can i have such kind of error.

I am a beginner to ros world, so frastrated recently . lol...

[ 96%] Built target gazebo_ros_depth_camera

Scanning dependencies of target gazebo_ros_openni_kinect

[ 97%] Built target gazebo_ros_multicamera

Scanning dependencies of target gazebo_ros_prosilica

[ 98%] Building CXX object gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_ros_prosilica.dir/src/gazebo_ros_prosilica.cpp.o

[100%] Building CXX object gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_ros_openni_kinect.dir/src/gazebo_ros_openni_kinect.cpp.o

In file included from /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:25:0: /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:270:35: error: ‘gazebo_ros’ has not been declared void physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level); ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:270:61: error: expected ‘,’ or ‘...’ before ‘&’ token void physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level); ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:50: error: ‘gazebo_ros’ was not declared in this scope boost::shared_ptr< dynamic_reconfigure::Server<gazebo_ros::physicsconfig> > physics_reconfigure_srv_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:75: error: template argument 1 is invalid boost::shared_ptr< dynamic_reconfigure::Server<gazebo_ros::physicsconfig> > physics_reconfigure_srv_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:77: error: template argument 1 is invalid boost::shared_ptr< dynamic_reconfigure::Server<gazebo_ros::physicsconfig> > physics_reconfigure_srv_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:31: error: ‘gazebo_ros’ was not declared in this scope dynamic_reconfigure::Server<gazebo_ros::physicsconfig>::CallbackType physics_reconfigure_callback_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:56: error: template argument 1 is invalid dynamic_reconfigure::Server<gazebo_ros::physicsconfig>::CallbackType physics_reconfigure_callback_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:59: error: expected ‘;’ at end of member declaration dynamic_reconfigure::Server<gazebo_ros::physicsconfig>::CallbackType physics_reconfigure_callback_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:72: error: ‘physics_reconfigure_callback_’ does not name a type dynamic_reconfigure::Server<gazebo_ros::physicsconfig>::CallbackType physics_reconfigure_callback_; ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:53: error: variable or field ‘physicsReconfigureCallback’ declared void void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:53: error: ‘gazebo_ros’ has not been declared /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:80: error: ‘config’ was not declared in this scope void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:97: error: expected primary-expression before ‘level’ void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^

/home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:2302:1: error: expected ‘}’ at end of input ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by Jacky4869
close date 2017-05-30 20:01:06.533029

Comments

Have you tried to install all the dependencies with rosdep? Follow http://answers.ros.org/question/75241...

DavidN gravatar image DavidN  ( 2017-05-28 23:23:49 -0500 )edit

Thank u for your help. After installing the package you recommended, it works better, but the problem is not fully solved. Could u give me any more suggestions?

Jacky4869 gravatar image Jacky4869  ( 2017-05-30 17:20:46 -0500 )edit

@DavidN I updated the error code. If you have time, could u take a look. Really appreciate that

Jacky4869 gravatar image Jacky4869  ( 2017-05-30 19:11:27 -0500 )edit

It seems you have the source code of gazebo_ros and you are trying to compile it. You plan to modify gazebo ros source code?

DavidN gravatar image DavidN  ( 2017-05-30 21:23:12 -0500 )edit

@DavidN Exactly, I figured out the reason. Somehow, I downloaded a wrong gazebo_ros package and caused the conflict.

Thank you so much for your help!!!

Jacky4869 gravatar image Jacky4869  ( 2017-05-31 13:35:05 -0500 )edit