ROS 2 Humble Python Minimum Publisher is not working
I am trying to follow the tutorial here however, during one of the last steps when I run . install/setup.bash
in a different terminal than the one I built in, the package is still not found.
The files are installed as expected (i.e. ~/dev_ws/install/py_pubsub/lib/py_pubsub/listener
and .../talker
).
Basically, my workflow is:
- Open terminal
source /opt/ros/humble/setup.bash
cd ~/dev_ws
colcon build
There is a warning reported at this stage:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Then I open a new terminal:
source install/setup.bash
ros2 run py_pubsub listener
and I get Package 'py_pubsub' not found
.
The following is my AMENT_PREFIX_PATH
~/dev_ws/install/turtlesim:~/dev_ws/install/py_pubsub:~/dev_ws/install/cpp_pubsub:/opt/ros/humble
Just as another reference point, the c++ tutorial is working fine.
I am using Ubuntu 22.04.
Any help would be appreciated!
Asked by RichProgrammerEE on 2022-07-12 15:42:43 UTC
Comments