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

[Release] Spawning multiple instances of clients for remote sessions #54

Closed
2 tasks done
DhruvKoolRajamani opened this issue Mar 25, 2020 · 2 comments
Closed
2 tasks done
Labels
enhancement New feature or request

Comments

@DhruvKoolRajamani
Copy link
Collaborator

DhruvKoolRajamani commented Mar 25, 2020

Refer to the thread to setup multiple rosmasters.

  • Modify current namespace schema /ambf/env/ to /ambf/user_envNo/env/
  • Allow -p port to be specified for ambf client instances.
@DhruvKoolRajamani DhruvKoolRajamani changed the title [Release] Allow multiple rosmasters using ports [Release] Spawning multiple instances of clients for remote sessions Mar 25, 2020
@adnanmunawar adnanmunawar added the enhancement New feature or request label Mar 26, 2020
@adnanmunawar
Copy link
Member

I tested running multiple roscores on the same machine and multiple instances of AMBF and they work as expected.

Usage

Terminal 1
roscore -p <first_port_num>

Terminal 2
export ROS_MASTER_URI=http://localhost:<first_port_number>
./ambf_simulator <any necessary CLIs>

Terminal 3
roscore -p <second_port_num>

Terminal 4
export ROS_MASTER_URI=http://localhost:<second_port_number>
./ambf_simulator <any necessary CLIs>

and so on ...

NOTE: Make sure to export the correct ROS_MASTER_URI's on all the terminals running the Python AMBF client to connect to the proper roscore and AMBF instance.

@adnanmunawar
Copy link
Member

This commit f9db777 allows a user to run ambf with the CLI arg --ns and specify a forced prefix to the namespace.
Usage:

./ambf_simulator <desired_adf_files> --ns /test/

This will result in the string "/test/" to be appended to all the topics regardless of whether or not they are specified in the relevant ADF files with an absolute namespace (e.g. "/ambf/env/").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants