-
Notifications
You must be signed in to change notification settings - Fork 83
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
Loading parameters for multiple ign_ros2_control plugins #145
Comments
This is exactly what I have noticed. Same ROS and gazebo version. Please fix it. |
Have you found a workaround @roni-kreinin ? |
@lklimkiewicz7 Either have all parameters in the file passed to the first robot, or us a wildcard if all robots use the same parameters. |
I have the same issue. Launch the script with gazebo sim and spawn two different robots. Each of the robot has its own controller manager with the corresponding namespace. I can see both controller managers get started. However, the second controller managers does not get its configurations from the file. After the investigation of the code, I assume the problem is here
Since one single gz plugin manages all controller manager, the rcl Context will be initialized once and with the arguments, that contain the parameter file from the first controller manager. Therefore, the solution would be to reinitialize Context or to update the parameter before the controller manager could be created. Could it be fixed, since the workaround does not scale-up? |
I'm still facing this issue as mentionned by @roni-kreinin . Is there any progress on this ? |
I'm trying to run two different robots simultaneously in Fortress (ROS2 Humble) using
ign_ros2_control
. Each robot is namespaced and launches its own instance of theign_ros2_control
plugin, and both a Diff Drive controller and Joint State Broadcaster. Each robot has its own namespaced parameter file for the controllers. The nodes and topics are all being namespaced correctly, but the issue I am seeing is that when I spawn the second robot, the controller manager seems to be loading the parameter file of the first robot.Each robot defines the plugin like so:
The parameter file path and namespace is unique to each robot.
If I add the parameters of both robots to the parameter file of the first, then everything loads and runs well. Similarly, if I use the
/**
wildcard for the namespace in the parameter file, then both robots will load the first robots parameters.Is there a workaround to this issue?
The text was updated successfully, but these errors were encountered: