-
Notifications
You must be signed in to change notification settings - Fork 251
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
Consistent node naming across ros2cli tools #60
Conversation
Wouldn't this hardcoding interfere if a user wanted to have rosbag2 to either play or record traffic while advertising itself under a FQN of the user's choosing? Some example use cases:
I think it might be more useful to enable |
The current rosbag implementation already starts up the node with the hardcoded name "rosbag2", so none of those use cases are currently possible 😢 |
I am not sure about the implications regarding |
Makes sense, but I'll reemphasize the point that this change doesn't contradict any future name changes. We add a prefix so that naming would be consistent across ros2cli nodes by default, making it easier to integrate with security. A future PR could allow users to specify the node name and namespace. |
Any thoughts on this one? |
Rebased properly now. |
@Karsten1987 how would you suggest this be implemented? Having all unknown args parsed to the ros2bag cli's argparser be passed onto the rosbag2/rosbag2_transport/src/rosbag2_transport/rosbag2_transport_python.cpp Lines 82 to 85 in a963c68
|
This needs rebasing, but in any case would be blocked on ros2/ros2cli#158 since it refers to |
…odes with appropriate naming.
…odes with appropriate naming.
Rebased. Build would fail because it depends on ros2/ros2cli#158 (which depends on ros2/rclpy#259). |
Sorry for being so silent on this, didn't know rosbag was a blocking factor on this.
Eventually this rosbag transport interface has to be rewritten a bit more generic to also allow an easy python entry point, but yes. The command line argument should be used to allow remapping et al. That being said, for now I believe it's the correct way to forward all command line arguments to the rosbag2/rosbag2_transport/src/rosbag2_transport/rosbag2_transport.cpp Lines 53 to 56 in a963c68
And then further down the actual call to rosbag2/rosbag2_transport/src/rosbag2_transport/rosbag2_transport.cpp Lines 79 to 85 in a963c68
Looking at the two snippets, I don't think we can easily forward the arguments but rather pre-parse them and pass them to the individual functions. |
I'm a bit confused, does that mean you'd be fine with the current PR? do you have any comments we'd need to address? Thanks. |
just to make sure, I am fully understanding what's happening here. The current PR as-is does not address this feature quoted above but rather introduce a node-prefix, is that correct? if so, I believe this PR is consistent with the changes just recently merged to |
it looks like we run into the same issue than here: i have to see whether ros2/rcl#350 is related to it. |
@Karsten1987 fix for logging was pushed here: ros2/rcl#384 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test failures are due to updated cppcheck. Unrelated to this change.
connects to ros2/ros2cli#158
Summary
This is part of the improvements suggested here mainly intended for CLI tools' usability with security, and depends on this change to
ros2cli
. It will make it easy to use ros2bag on security-enabled systems.ros2cli
.Related changes
Refer to
https://discourse.ros.org/t/ros2-security-cli-tools/6647/