No module Webots_ros2_driver when following Webots tutorial

asked 2022-01-26 04:01:52 -0500

Fefe gravatar image

updated 2022-01-28 14:09:38 -0500

osilva gravatar image

Hello everyone!

I installed ROS2 galactic distro and I am following the "Setting-up a Robot Simulation (Webots)" tutorial. (https://docs.ros.org/en/galactic/Tuto...)

I follow all the steps until "7 Test the code" and the "ros2 launch my_package robot_launch.py" command return an error :

*InvalidLaunchFileError: Caught exception when trying to load file of format [py]: No module named 'webots_ros2_driver'*

I do not if it is linked but the previous build command install only one package (my_package) and had a warning:

*WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/coder/webots_test_ws/install/my_package' in the environment variable AMENT_PREFIX_PATH doesn't exist*

Thank you for your help!

edit retag flag offensive close merge delete

Comments

Have you installed the package webots_ros2?

Reference: https://github.com/cyberbotics/webots...

Please check demo works first.

Did you get the warning when you try colcon build ?

osilva gravatar image osilva  ( 2022-01-28 14:18:54 -0500 )edit