Error with launch
Hey
thank you for the tutorial for point cloud use within ROS2 foxy. I have a few questions about pcd_demo. I have followed the steps in the readme file, and if I want to launch automatic mode I get errors:
LookupError: Could not find the resource 'pcd_publisher' of type 'packages'
And if I want to do manual start using ros2 run I get problem with dependency 'open3d', even though I have open3d installed with pip for python 3. I get the error for missing open3d:
ModuleNotFoundError: No module named 'open3d'
So I have question about the problem, is it due to colcon build or something else? Thank you.
I haven't used this demo in a while. I'll have a look at it when I have time to see if I can figure out what's going on. :)
@Zeleni9 Sorry for the long wait.
I have now had time to investigate this and have made some corrections to fix the lookup error.
I couldn't replicate the second error ModuleNotFoundError: No module named 'open3d'. Are you sure that you installed it using the correct pip version? It's sometimes common to have multiple version of python installed on a system.
Whats the output when you run the following commands?
dpkg -L ros-foxy-rclpy | grep /lib/python | cut -d\/ -f6 | sort -u
# and
pip --version
On my system, it outputs the first command outputs python3.8, which also happens to be the python version my pip command uses:
> pip --version
pip 21.3.1 from /home/grans/.local/lib/python3.8/site-packages/pip (python 3.8)
If this is not the case for you, you can try to install it with the correct python version:
python3.8 -m pip install open3d