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

How to use a package installed in Python ?

asked 2020-10-12 12:25:21 -0500

jerry_dong gravatar image

I was learning ROS2 before but stuck on SLAM so I decided to switch back to ROS1.

In ROS2 I was working fine to add python dependencies that was installed using pip, but after I switched back to ROS1, catkin seems can't find those packages and I don't understand why.

I checked alot of pages and questions about this and most of them saying either put your package in rosdep or include them in your package. But what happened after that is there are dependencies in side of the package I want to use, and to include them I have to include them all, and none of them are available through rosdep.

This is extremely frustrating, how can I use a dependency that was installed in python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-12 18:38:10 -0500

jerry_dong gravatar image

Okay I figured this out with the experience of ROS2...... I do not need to add every lib to build-exec, as well as CMake find package.... those packages are not counted as build dependency, and they can be import when using python code.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-10-12 12:25:21 -0500

Seen: 172 times

Last updated: Oct 12 '20