Skip to content

Commit

Permalink
Fix ROS2 args when no ROS1 args
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasHaug committed Feb 8, 2023
1 parent 7bcbb2d commit 6255c1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/command_parser_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ void split_ros1_ros2_args(
if (it != args.end()) {
ros1_args = std::vector<const char *>(args.begin(), it);
ros2_args = std::vector<const char *>(it, args.end());
ros2_args.insert(ros2_args.begin(), args.at(0));
} else {
ros1_args = args;
ros2_args = args;
ros2_args = {};
}

ros2_args.insert(ros2_args.begin(), args.at(0));
}

} // namespace ros1_bridge

0 comments on commit 6255c1c

Please sign in to comment.