Skip to content

Commit

Permalink
Add ROS_DOMAIN_ID at robot start
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 15, 2025
1 parent 24af5c9 commit cec5be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosaur/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def start_robot_simulation(params):
try:
# Combine sourcing the bash file with running the command
process = subprocess.Popen(
f"source {bash_file} && {command} namespace:={robot.name}",
f"source {bash_file} && ROS_DOMAIN_ID={robot.domain_id} {command} namespace:={robot.name}",
shell=True,
executable="/bin/bash",
stdout=subprocess.PIPE,
Expand Down

0 comments on commit cec5be2

Please sign in to comment.