Recording a bag file from a launch file.
DLu opened this issue · 5 comments
DLu commented
Feature request
Feature description
The syntax for recording a bag file from a launch file always seemed awkward to me.
Passing a raw ExecuteProcess command seems to invite errors.
Instead, there should be a custom launch_ros action that does the same thing.
Implementation considerations
Seems like it could be a straightforward extension of ExecuteProcess.
clalancette commented
We think this is possible via registering a launch action. But because this package can't depend on rosbag2 (that would lead to circular dependencies), this would have to be done in rosbag2. I'm going to move the issue over there and mark it as an enhancement.
MichaelOrlov commented
emersonknapp commented
DLu commented
Yeah, that syntax would work. The alternative would be something like
rosbag2.launch_actions.Record(
name='my_recorder',
parameters=[{
'topics': LaunchConfiguration('my_topic_list')
}]
),
MichaelOrlov commented
- Closing as a duplicate for #1419