-
Notifications
You must be signed in to change notification settings - Fork 114
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
Adding arguments to launch files #8
Conversation
I think this is a good improvement. I might suggesting the following - if you think it will help.
Thoughts? Brian |
Thank you for your feedback, Brian! Regarding (1) If I understand correctly the only major difference between 45 and 25 that would be baked into the launch files would be 25 not using the GPS and Odometry, right? ... With that being said, for any potential users of this I think it is handy to see a launch file that matches your specific model and know that all you have to do is set the port name to be off and running. It is also worth mentioning that I am actually working together with @ryanmeasel, with whom you had a discussion in the past regarding the GX5-10 model support #5. Bringing GX5-10 into the mix is still something we want to do next. Under the proposed launch file scheme that means also having a microstrain_10.launch. Would that be OK? Would it be different? As far as I can tell based on what we use now, the microstrain_25.launch file also works for 10, but keeping such nomenclature is clearly less than ideal. Regarding (2) Removing the kf and pioneer launch file would definitely be good. I will go ahead and include that change in this pull request already. |
Just as a thought, we could make a generic launch file that loads a config yaml based on which model of IMU with the parameters/features of the specific model. |
@tonybaltovski @bsb808 Hi guys, sorry for such delayed response. Finally getting back into the swing of things but still very much keen on doing some launch file cleanup. @tonybaltovski I think having a generic launch file is a good idea. So if I understand you correctly, some of the changes would be:
device_setup: true readback_settings: true publish_imu: true gps_rate: 4 publish_odom: false |
Hey, I'm also interested in this PR. Can I do anything to help speed it along? |
@athackst Thank you for the nudge to get this moving again. Looking through the thread it seems like there are two proposals here.
My personal preference is for 1). As said previously, I think it is a simpler solution for folks to get started with specific hardware variants. To my thinking the launch files in the package are meant to be working examples that can be used for folks to get up and running quickly. I believe that the current PR achieves 1) - but that it would be an small amount of additional work to implement 2) So - I'd propose we move forward with merging the PR as is. |
LGTM 👍 |
Thank you all for your patience! |
Adding arguments to launch files
Exposing some of the node parameters as arguments in the launch files to make it easier to use existing launch files with different configurations, especially the port names.
The 'microstrain.launch' file is the most generic one with many parameters exposed. The other launch files are meant to be more specific so I kept them largely the same, with just a few arguments. I think ideally what would happen is that the more specific launch files would call 'microstrain.launch' internally with fewer arguments exposes (for example, 'publish_gps' + 'publish_odom' would be hard-coded to FALSE for microstrain_25.launch) but at the moment I don't know enough about the model specifics to safely generalize them.