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

How to get a versopm of common_interfaces with sensor_msgs_py package

asked 2022-02-24 03:25:28 -0500

fabbro gravatar image

I am using ROS2 foxy on Ubuntu 20.04.

I would like to use the package sensor_msgs_py developed here and that can be found here.

I did

https://github.com/ros2/common_interfaces/tree/master/sensor_msgs_py

and I get

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-foxy-common-interfaces is already the newest version (2.0.5-1focal.20220201.015625).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

However, I cannot find the package sensor_msgs_py anywhere.

Probably it is a really stupid question but I could not figure it out so far.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-24 03:50:20 -0500

fabbro gravatar image

I am not sure that this is a good answer (to me it does not look too clean but maybe it is the only way out for now). I found a temporary solution to this problem and I will post it here.

I cloned the git repository in my src folder of the ros2 workspace (ros2_ws) in which I am currently working:

git clone git@github.com:ros2/common_interfaces.git

built with colcon the interesting package

colcon build --symlink-install --packages-select sensor_msgs_py

from inside the ros2_ws directory, run the following command to source your workspace:

. install/setup.bash

In the python script I am using I can now do:

from sensor_msgs_py import point_cloud2

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-02-24 03:25:28 -0500

Seen: 279 times

Last updated: Feb 24 '22