Skip to content

Use xacro file to plumb namespace into gz topics#10

Merged
SteveMacenski merged 2 commits intoros-navigation:multirobotfrom
azeey:multirobot
Jun 19, 2024
Merged

Use xacro file to plumb namespace into gz topics#10
SteveMacenski merged 2 commits intoros-navigation:multirobotfrom
azeey:multirobot

Conversation

@azeey
Copy link
Contributor

@azeey azeey commented Jun 19, 2024

It's not currently possible to set the namespace of gz-transport topics when a model is spawned. So the best option I could think of is to turn gz_waffle.sdf into a xacro file and pass in the namespace argument.

This also updates the max_step_size to 3ms to improve performance.

cc @SteveMacenski

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@SteveMacenski
Copy link
Member

Ah... that is not an expected result, thanks! So it looks like I figured out the bridge part, but didn't get the model part. I thought that there was a way to apply the node that spawned it namespace (or a launch flag) that would throw all the topics if not prepended with / into a namespace in GZ - since that would be really helpful and a common need I would imagine :-)

But this works just as well, if only slightly more manual.

@SteveMacenski SteveMacenski merged commit 9320bce into ros-navigation:multirobot Jun 19, 2024
SteveMacenski added a commit that referenced this pull request Jun 21, 2024
* Attempts for multirobot namespacing in GZ

* expanding gazebo names

* Use xacro file to plumb namespace into gz topics (#10)

* Use xacro file to plumb namespace into gz topics

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Fix linter

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

---------

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

---------

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Addisu Z. Taddese <addisuzt@intrinsic.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants