rosbag2 test_msgs error
Trying following tutorial: https://github.com/ros2/rosbag2/blob/master/README.md
$ git clone https://github.com/ros2/rosbag2.git
$ colcon build
This failes with following error: https://github.com/ros2/rosbag2/issues/97
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 testinterfacefiles
$ 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 CMAKEMODULEPATH ?
(maybe add this information to the README file)
Thanks in advance!
Asked by jlepers on 2019-11-08 05:47:56 UTC
Answers
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.
Asked by jacobperron on 2019-11-27 20:04:08 UTC
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").Asked by gvdhoorn on 2019-11-08 07:15:54 UTC
The issue on github was opened by antoher user and already closed by the maintainers of rosbag2
Asked by jlepers on 2019-11-08 07:38:38 UTC
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.
Asked by jlepers on 2019-11-08 07:40:08 UTC
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.
Asked by gvdhoorn on 2019-11-08 07:40:15 UTC
I deleted the post on github and will wait till someone replies to this question.
Asked by jlepers on 2019-11-08 07:42:47 UTC