canonical / turtlebot3c-snap

turtlebot3c packaged as a snap.
3 stars 4 forks source link

fix(ros_network): ROS_MASTER_URI is defined in advance by ros-extensi… #45

Closed Guillaumebeuzeboc closed 1 month ago

Guillaumebeuzeboc commented 1 month ago

The ROS network was not accessible from a different device.

It turns out that ROS_MASTER_URI was always set to "http://localhost:11311" although we had defined the ros-master-host parameter.

In the command chain, the ros-extension script defining ROS_MASTER_URI="http://localhost:11311" was called before the ros_network script.

    command-chain:
    - snap/command-chain/ros1-launch
    - usr/bin/ros_network.sh
    - usr/bin/mux_select_joy_vel.sh