-
Notifications
You must be signed in to change notification settings - Fork 287
[draft] merge the remapping argument into Player's NodeOption. #2089
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
base: rolling
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2167,7 +2167,17 @@ Player::Player( | |||||||||||||||||||||||||||||||||||||||||||||||||
| const rclcpp::NodeOptions & node_options) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| : rclcpp::Node( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| node_name, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rclcpp::NodeOptions(node_options).arguments(play_options.topic_remapping_options)) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| // Merge existing arguments with topic remapping options | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rclcpp::NodeOptions(node_options).arguments( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| [&, node_options]() { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| auto args = node_options.arguments(); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| args.insert(args.end(), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| play_options.topic_remapping_options.begin(), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| play_options.topic_remapping_options.end()); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| return args; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| }() | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+2172
to
2181
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| [&, node_options]() { | |
| auto args = node_options.arguments(); | |
| args.insert(args.end(), | |
| play_options.topic_remapping_options.begin(), | |
| play_options.topic_remapping_options.end()); | |
| return args; | |
| }() | |
| ) | |
| ) | |
| { | |
| merge_node_arguments(node_options, play_options) | |
| ) | |
| ) | |
| { | |
| // Helper function for merging node arguments | |
| auto merge_node_arguments( | |
| const rclcpp::NodeOptions & node_options, | |
| const rosbag2_transport::PlayOptions & play_options) -> std::vector<std::string> { | |
| auto args = node_options.arguments(); | |
| args.insert(args.end(), | |
| play_options.topic_remapping_options.begin(), | |
| play_options.topic_remapping_options.end()); | |
| return args; | |
| } |
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.
hmm i do not think this is necessary. waiting for what other people think about this.
fujitatomoya marked this conversation as resolved.
Show resolved
Hide resolved
fujitatomoya marked this conversation as resolved.
Show resolved
Hide resolved
fujitatomoya marked this conversation as resolved.
Show resolved
Hide resolved
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.
this change is unrelated but i met the following error to be fixed with it.
135: Test command: /usr/bin/python3 "-u" "/root/ros2_ws/colcon_ws/install/ament_cmake_test/share/ament_cmake_test/cmake/run_test.py" "/root/ros2_ws/colcon_ws/build/rosbag2_transport/test_results/rosbag2_transport/uncrustify.xunit.xml" "--package-name" "rosbag2_transport" "--output-file" "/root/ros2_ws/colcon_ws/build/rosbag2_transport/ament_uncrustify/uncrustify.txt" "--command" "/root/ros2_ws/colcon_ws/install/ament_uncrustify/bin/ament_uncrustify" "--xunit-file" "/root/ros2_ws/colcon_ws/build/rosbag2_transport/test_results/rosbag2_transport/uncrustify.xunit.xml"
135: Working Directory: /root/ros2_ws/colcon_ws/src/ros2/rosbag2/rosbag2_transport
135: Test timeout computed to be: 60
135: -- run_test.py: invoking following command in '/root/ros2_ws/colcon_ws/src/ros2/rosbag2/rosbag2_transport':
135: - /root/ros2_ws/colcon_ws/install/ament_uncrustify/bin/ament_uncrustify --xunit-file /root/ros2_ws/colcon_ws/build/rosbag2_transport/test_results/rosbag2_transport/uncrustify.xunit.xml
135: Code style divergence in file 'src/rosbag2_transport/player.cpp':
135:
135: --- src/rosbag2_transport/player.cpp
135: +++ src/rosbag2_transport/player.cpp.uncrustify
135: @@ -2180 +2180 @@
135: - )
135: +)
135: @@ -2225 +2225 @@
135: - )
135: +)
135: @@ -2264 +2264 @@
135: - ),
135: +),
135: @@ -2267 +2267,2 @@
135: -{}
135: +{
135: +}
135:
135: 1 files with code style divergence
Uh oh!
There was an error while loading. Please reload this page.