Skip to content

Commit

Permalink
fix dataset name to be robot name
Browse files Browse the repository at this point in the history
  • Loading branch information
KeplerC committed Apr 29, 2024
1 parent c2e64d3 commit c49b7fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tutorial_workspace/fogros2_tutorial/fog_rtx_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tutorial_workspace/launch/cloudgripper.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c49b7fa

Please sign in to comment.