-
Notifications
You must be signed in to change notification settings - Fork 140
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
Make ros_gz_sim::create
use ROS parameters
#459
Comments
So, one should add XYZ and RPY as rosparams right? or all the gflag arguments ? |
Hi @yaswanth1701, all the gflags arguments |
There is a gflag argument 'param', which allows us to pass any ros parameters which is not declared in the create.cpp file. So, now that we are converting gflag arguments to Parameters itself, we will lose this functionality, right? |
@mjcarroll any comments? |
@Ayush1285 In my opinion, since this is currently primarily used from ROS launch files, it would make sense to port all available parameters to be ROS parameters. In the case that no ROS parameter arguments are available, we can revert to the An alternative to the gflags "fallback" parsing is to provide two separate executables, one exclusively gflags and one exclusively ROS paramaters, but I think that would result in a good bit of duplication. I'll leave that up to whoever implements it to see which way works better. I'm envisioning getting us positioned to take advantage of custom launch actions down the road, so the more "native" ROS support we have, the better. |
I'm thinking about implementing this. I'll go with the first behaviour. |
Currently, the
ros_gz_sim::create
node uses gflags to configure where and how models are loaded.For maximum compatibility with ROS, I think it makes sense to switch the gflags arguments to use rclcpp::Parameters.
The text was updated successfully, but these errors were encountered: