-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add the ability to change the node name of the recording node using the recorder API #1145
Comments
A respectful follow up to this ticket because I still don't know the proper way to solve this, I will rewrite my questions I want to be able to choose the ROS topic name when launching a recording, the Python API does not have any option to do that but the C++ API does, in which way do rosbag developers implement method overloading? Do you use a second function with another name? Is there a document describing the programming guidelines? Thank you very much for your time! |
In Python you can do optional arguments with default values - that would make it a non-breaking change to the API. I'd rather see your patch in a pull request than in an issue - easier to review, and the changes even get built and tested automatically :) Note: this is either a duplicate or extension of #425. Perhaps we should combine the issues |
https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Developer-Guide.html https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html
Do you mean in the
Best evaluated in a pull request, especially given how simple the change is, it took longer to ask for permission than to put it up for review :) |
Thank you very much for your comments, this is my first time around so I thought it was more polite to ask for advice rather than just go ahead, I will submit the PR today, I didn't see the previous issue so yeah it might be a good mechanism to implement that behavior. |
Hello everyone, I'm new to this so I wanted to start asking a question
Description
I'm coding a system that will need to run multiple ROS bag recordings at the same time, and one limitation is that every node launched has the same name, I wanted to fix this problem, I wrote a small patch but it doesn't keep the original API which is a no-no.
My recording code is as follows
This code mimics the C++ API where this is legal
So I wrote the following patch:
But this breaks the API.
My questions are as follows:
I know one way to implement this would be using optional keyword arguments but I couldn't find any such example in the ros codebase, so maybe it's use is discouraged and there is a better way to implement this.
Thanks to everyone for their time and please tell me about any way to move this forward.
The text was updated successfully, but these errors were encountered: