Skip to content

Commit

Permalink
update ros2bag launch and config
Browse files Browse the repository at this point in the history
  • Loading branch information
adev4a committed Nov 22, 2024
1 parent 9b45c93 commit 21cfebb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions carma-messenger-core/carma-messenger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ else() # ROS 2


ament_auto_package(
INSTALL_TO_SHARE launch log-config scripts ui
INSTALL_TO_SHARE config launch log-config scripts ui
)

endif()

Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ def generate_launch_description():
description = 'Path of folder on host PC containing route CSV file(s) that can be accessed by plugins'
)

# Launch ROS2 rosbag logging
ros2_rosbag_launch = GroupAction(
actions=[
IncludeLaunchDescription(
PythonLaunchDescriptionSource([ThisLaunchFileDir(), '/ros2_rosbag.launch.py']),
)
]
)

transform_group = GroupAction(
actions=[
PushRosNamespace(EnvironmentVariable('CARMA_TF_NS', default_value='/')),
Expand Down Expand Up @@ -94,23 +103,14 @@ def generate_launch_description():
)


# Launch ROS2 rosbag logging
ros2_rosbag_launch = GroupAction(
actions=[
IncludeLaunchDescription(
PythonLaunchDescriptionSource([ThisLaunchFileDir(), '/ros2_rosbag.launch.py']),
)
]
)


return LaunchDescription([
declare_configuration_delay_arg,
declare_route_file_folder,
ros2_rosbag_launch
transform_group,
v2x_group,
plugins_group,
ui_group,
traffic_incident_group,
ros2_rosbag_launch
traffic_incident_group
])

0 comments on commit 21cfebb

Please sign in to comment.