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

rosbag2 test_msgs error

asked 2019-11-08 04:47:56 -0600

jlepers gravatar image

Trying following tutorial: https://github.com/ros2/rosbag2/blob/...

 $ git clone https://github.com/ros2/rosbag2.git
 $ colcon build

This failes with following error: https://github.com/ros2/rosbag2/issue...

After adding the rcl_interfaces folder to my workingspace and bulding it

 $ git clone https://github.com/ros2/rcl_interfaces.git
 $ colcon build

I have a simular error as before about the test_interface_files

 $ git clone https://github.com/ros2/test_interface_files.git
 $ colcon build

This didn't solve the problem

1) How to correctly install rosbag2 ?

2) Is it necessary to install all those directories seperately (this doesn't seem efficient) ?

3) What is the correct way of using the CMAKE_MODULE_PATH ?

(maybe add this information to the README file)

Thanks in advance!

edit retag flag offensive close merge delete

Comments

Could I ask you to please not cross-post problems? Especially not if they already have issues on ros2/* trackers?

In the best case it leads to split discussions, but worst case it leads to duplicated and wasted effort.

Please give the maintainers of ros2/rosbag2 a chance to respond to your issue comment before opening new posts here.

Finally: it's typically not a good idea to ask multiple questions in a single post here on ROS Answers. It's not a forum, but an Askbot instance. Those work best when there is a 1:1 ratio of questions and answers (even more so as the question title does not seem linked to the questions you ask, it only says something about a "test_msgs error").

gvdhoorn gravatar image gvdhoorn  ( 2019-11-08 06:15:54 -0600 )edit

The issue on github was opened by antoher user and already closed by the maintainers of rosbag2

jlepers gravatar image jlepers  ( 2019-11-08 06:38:38 -0600 )edit

I added as much information in this question as I could to make this post clear. Those 3 questions are all talking about the same issue, they are just formulated in a different way.

jlepers gravatar image jlepers  ( 2019-11-08 06:40:08 -0600 )edit

Yes, but you have posted a new comment on it, which may lead it to be re-opened (I would suggest to add a bit more context / diagnostic information to it though).

In any case: please don't cross-post, even if you're just posting a comment on an existing issue.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-08 06:40:15 -0600 )edit

I deleted the post on github and will wait till someone replies to this question.

jlepers gravatar image jlepers  ( 2019-11-08 06:42:47 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-11-27 19:04:08 -0600

jacobperron gravatar image

updated 2019-11-27 19:06:30 -0600

There are several ways to install a ROS package, like rosbag2, and it depends on your platform. See the ROS 2 installation instructions for details regarding your platform.

Assuming you are using Linux (Ubuntu) and ROS Eloquent, the easiest way is to follow the binary installation instructions and install rosbag2 with apt (replacing eloquent with the ROS distro name you are using.):

sudo apt install ros-eloquent-rosbag2

If you want to build rosbag2 from source. There are two options: overlay an existing ROS installation or build everything from source. For creating an overlay workspace, I recommend checking out the Creating a Workspace tutorial for details. Based on the error you got, I guess you need install the test_msgs dependency (again, replacing eloquent with the ROS distro you are using):

sudo apt install ros-eloquent-test-msgs

It sounds like you're looking for the overlay option, where you don't have to build everything from source.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-08 04:47:56 -0600

Seen: 926 times

Last updated: Nov 27 '19