最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Cannot connect to webots instance(Running ROS2 on WSL and webots on windows) - Stack Overflow

programmeradmin3浏览0评论

When I try to follow the instructions in the ros2 humble documentations about webots installation on windows and then launch webots_ros2_universal_robot, I'm getting an error where the ROS2 can't seem to find the webots instance. Webots running on Windows

Error I get on WSL:

[ERROR] [webots_controller_UR5e-3]: process has died [pid 6831, exit code 1, cmd '/opt/ros/humble/share/webots_ros2_driver/scripts/webots-controller --robot-name=UR5e --protocol=tcp --ip-address=10.255.255.254 --port=1234 ros2 --ros-args -r __ns:=/ur5e -p robot_description:=/opt/ros/humble/share/webots_ros2_universal_robot/resource/ur5e_with_gripper.urdf.xacro -p xacro_mappings:=['name:=UR5eWithGripper'] -p use_sim_time:=True -p set_robot_state_publisher:=True -p ip_address:=0.0.0.0 -p port:=1234 --params-file /opt/ros/humble/share/webots_ros2_universal_robot/resource/ros2_control_config.yaml'].
[ERROR] [webots_controller_abbirb4600-4]: process has died [pid 6833, exit code 1, cmd '/opt/ros/humble/share/webots_ros2_driver/scripts/webots-controller --robot-name=abbirb4600 --protocol=tcp --ip-address=10.255.255.254 --port=1234 ros2 --ros-args -r __ns:=/abb -p robot_description:=/opt/ros/humble/share/webots_ros2_universal_robot/resource/webots_abb_description.urdf -p use_sim_time:=True -p set_robot_state_publisher:=True -p ip_address:=0.0.0.0 -p port:=1234 --params-file /opt/ros/humble/share/webots_ros2_universal_robot/resource/ros2_control_abb_config.yaml'].

FYI: I'm running Ubuntu 22.04 on WSL with ros2 Humble installed. My webots version is 2025a. Windows 11.

I've tried to running telnet 10.255.255.254 1234 to check if the connection works but it failed. I'm not sure if this is the problem because the IP used here doesn't seem normal and is different from the actual IP address of WSL.

Any help is appreciated Thanks!

发布评论

评论列表(0)

  1. 暂无评论