ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 build error gazebo_ros_pkgs

asked 2020-03-09 16:42:14 -0500

chaz gravatar image

updated 2020-03-10 03:03:14 -0500

gvdhoorn gravatar image

I am getting a build error gazebo_ros_pkgs from source for ROS2 Dashing on a (ubuntu 18.04) Jetson Nano hardware.

I build from source Gazebo 9.9.0 and I followed this link to build from source gazebo_ros_pkgs http://gazebosim.org/tutorials?tut=ro...

I am getting the following error below. Appreciate any help !

/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp: In static member function ‘static gazebo_ros::Node::SharedPtr gazebo_ros::Node::Get(sdf::ElementPtr)’:
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:76:25: error: ‘RCL_ROS_ARGS_FLAG’ was not declared in this scope
     arguments.push_back(RCL_ROS_ARGS_FLAG);
                         ^~~~~~~~~~~~~~~~~
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:79:27: error: ‘RCL_REMAP_FLAG’ was not declared in this scope
       arguments.push_back(RCL_REMAP_FLAG);
                           ^~~~~~~~~~~~~~
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:79:27: note: suggested alternative: ‘RCL_RET_OK’
       arguments.push_back(RCL_REMAP_FLAG);
                           ^~~~~~~~~~~~~~
                           RCL_RET_OK
make[2]: *** [CMakeFiles/gazebo_ros_node.dir/src/node.cpp.o] Error 1
make[1]: *** [CMakeFiles/gazebo_ros_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
---
Failed   <<< gazebo_ros [ Exited with code 2 ]
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-03-10 04:32:58 -0500

marguedas gravatar image

This tutorial makes you clone the ros2 branch of these repositories. However in your case you want to build the dashing version of these packages, not the latest one, so you need to use the dashing branch of these git repositories. You do that by running:

vcs custom --args checkout dashing
edit flag offensive delete link more

Comments

Merci Beaucoup pour votre aide !

chaz gravatar image chaz  ( 2020-03-10 13:59:09 -0500 )edit

De rien :)

If this answer solved your problem, please consider accepting the answer by clicking the checkmark on the left, this will remove it from the queue of unanswered questions

marguedas gravatar image marguedas  ( 2020-03-10 15:51:52 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-09 16:42:14 -0500

Seen: 554 times

Last updated: Mar 10 '20