Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create discovery server partitions on User PC for multiple turtlebots #498

Open
PrakritTyagi opened this issue Nov 19, 2024 · 0 comments
Open
Assignees
Labels
troubleshooting System not working as expected, may be user error.

Comments

@PrakritTyagi
Copy link

PrakritTyagi commented Nov 19, 2024

Robot Model

Turtlebot4 Lite

ROS distro

Humble

Networking Configuration

Discovery Server

OS

Ubuntu 22.04

Built from source or installed?

Installed

Package version

turtlebot4_standard_humble_1.0.0.zip 2023-03-03 23:51 1.9G

Type of issue

Networking

Expected behaviour

Connect individual terminals to each turtlebots.

Actual behaviour

Each terminal opened becomes a listener to all turtlebots.

Error messages

No response

To Reproduce

  1. open individual terminals
  2. Soure each ROS_DISCOVERY_SERVER address:port in each terminal
  3. Listen to each turtlebot topics in individual terminals

Other notes

Hi, I have four turtlebots setup with discovery server. The discover server setup that configures the user PC has created a setup.bash file in the directory /etc/turtlebot_discovery. The setup.bash file looks like this...

source /opt/ros/humble/setup.bash
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
[ -t 0 ] && export ROS_SUPER_CLIENT=True || export ROS_SUPER_CLIENT=False
export ROS_DOMAIN_ID=0
export ROS_DISCOVERY_SERVER="192.168.0.106:11811;192.168.0.41:11811;192.168.0.151:11811;192.168.0.112:11811;"

I want to change my setup so that I can listen to ros topics/services/actions for any robot when I export its discovery server address:port. Changes that I have in my mind:

  1. Setup discovery server again and use different port for each robot as explained in the Ros2 humble docs .
  2. Create individual setup.bash files for each robot that only exports their server address. How should the content in these bash files look like?
  3. Can someone explain each line in my current setup.bash file? I want to understand what happens when I source the above bash file.

I would greatly appreciate if someone would look at this and give me suggestions to get this working. Thank you for your guidance.

@PrakritTyagi PrakritTyagi added the troubleshooting System not working as expected, may be user error. label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting System not working as expected, may be user error.
Projects
None yet
Development

No branches or pull requests

3 participants