-
Notifications
You must be signed in to change notification settings - Fork 123
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
multiple gazebo_ros2_control different namespaces #127
Comments
Have you tried to add additional tags for namespaces and remappings, like:
Atm I am also trying to spawn multiple entities (ROS Foxy) within Gazebo with ros2_control, gazebo_ros2_control plugin, etc.. To be fair, when I do, what I have suggested, the gazebo_ros2_control HW interfaces cannot be loaded:
|
I tried but it didn't work either. |
(Sorry used wrong account before) Cheers, |
Hi @bobbleballs, thanks for taking a look, you can consider opening a PR, then the maintainers can also take a look :) |
…ce issue described in ros-controls#127 Also remove superfluous ROS_ARGS_FLAG
Thanks @tonynajjar I've set one up at #181 |
…ce issue described in ros-controls#127 Also remove superfluous ROS_ARGS_FLAG
Thanks @bobbleballs . |
Hi @nattasit63 |
…ce issue described in ros-controls#127 Also remove superfluous ROS_ARGS_FLAG
Hi there, |
Hi @mauriz I'm a bit confused about what your problem is? |
Hi, the first point is that to my understanding (also considering what I have cloned some days ago) this patch has not been merged yet, right? If not, it is needed as it fixes the namespace problem for the controller manager. The second point is whether this package should have among its functional tests one that handles multiple robots similar to the example I have linked: at the moment I did not manage to use the load_controller (but it works with the spawner) node for example and I can't figure out if it is my mistake or a bug into this package or it's dependencies. |
hello i meet same problem ,where i find ,cpp |
Sorry, I don't understand. This has nothing to do with the namespace question of this thread? Please open a new issue and describe your problem properly. |
For those who are waiting for PR#181 to be merged, I have changed my URDF (xacro) as follows and successfully spawned multiple controller managers in different namespaces using the gazebo_ros2_control plugin: <gazebo>
<plugin name="${namespace}gazebo_ros2_control" filename="libgazebo_ros2_control.so">
...
<robot_param_node>/${namespace}/robot_state_publisher</robot_param_node>
<ros>
<namespace>${namespace}</namespace>
</ros>
</plugin>
</gazebo> Please note that this is just a workaround, and the second gazebo_ros2_control plugin is started in the same namespace as the first one, but each controller_manager has its correct namespace. But do not spawn multiple robot in gazebo simultaneously in this way because the plugins would be crash. |
Hi everyone, i am using ROS2 galactic with the debian repository packages.
I want to load multiple robots in multiple namespaces , each robot with its gazebo_ros2_control node.
Currently I'm am running the robot_state_publisher and gazebo spawner for each roboti in this way , changing the namespace for each robot accordingly:
while the gazebo_ros2_control plugin is in the xacro this way:
When I run the code, it seems like the namespace is neglected, and everything is loaded under the namespace of the first loaded node, for instance, when i run it for 2 robots it gets:
Further plugin are also loaded under the wrong namespace.
Am i doing something wrong?
if someone points me a known problem i can actually collaborate.
Thanks
The text was updated successfully, but these errors were encountered: