From c49b7faff81fa71add4fd7341f86d2ea120ec011 Mon Sep 17 00:00:00 2001 From: Eric Chen Date: Mon, 29 Apr 2024 18:23:30 +0000 Subject: [PATCH] fix dataset name to be robot name --- tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py | 6 +++--- tutorial_workspace/launch/cloudgripper.launch.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py b/tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py index e46de79..6f0ba01 100644 --- a/tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py +++ b/tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py @@ -11,9 +11,9 @@ class CompressedImageSubscriber(Node): def __init__(self): super().__init__('compressed_image_subscriber') - self.declare_parameter('dataset_name', 'demo_ds') - self.dataset_name = self.get_parameter('dataset_name').value - + self.dataset_name = self.declare_parameter('robot_name', 'PARAMETER NOT SET').get_parameter_value().string_value + if self.dataset_name == 'PARAMETER NOT SET': + raise ValueError('Please set the dataset_name parameter') self.declare_parameter("max_idle_time", 10) self.max_idle_time = self.get_parameter("max_idle_time").value diff --git a/tutorial_workspace/launch/cloudgripper.launch.py b/tutorial_workspace/launch/cloudgripper.launch.py index 233f894..3f5f057 100644 --- a/tutorial_workspace/launch/cloudgripper.launch.py +++ b/tutorial_workspace/launch/cloudgripper.launch.py @@ -37,7 +37,7 @@ def generate_launch_description(): Node( package="fogros2_tutorial", executable="fog_rtx_recorder", - parameters=[{'dataset_name': LaunchConfiguration('robot_name')}] + parameters=[{'robot_name': LaunchConfiguration('robot_name')}] ), Node( package="fogros2_tutorial", executable="sam_client",