Skip to content

Commit

Permalink
added launch parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydran00 committed Dec 6, 2024
1 parent 74a0b35 commit 4ad3ca7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/vf_control/launch/vf.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ def generate_launch_description():

ld = LaunchDescription()

use_fixtures = DeclareLaunchArgument("use_fixtures", default_value="false", description="Use fixtures for the VF")
# use_fixtures = DeclareLaunchArgument(
# 'use_fixtures',
# default_value='false',
# description='Use this argument to activate the fixtures (true or false)'
# )

# simulated_delay = DeclareLaunchArgument(
# 'simulated_delay',
# default_value=0.0,
# description='Use this argument to simulate a delay in the system (in seconds), use 0.0 for no delay'
# )

# haptic_wrapper
haptic_wrapper = TimerAction(
Expand Down Expand Up @@ -57,9 +67,11 @@ def generate_launch_description():
# remappings=[('/target_frame', '/target_frame_haptic')],
parameters=[
ParameterFile(vf_params),
{"use_fixtures": LaunchConfiguration("use_fixtures")}
{"use_fixtures": LaunchConfiguration("use_fixtures")},
{"delay": LaunchConfiguration("delay")}
],
remappings=[('bus0/ft_sensor0/ft_sensor_readings/wrench', '/force_torque_sensor_broadcaster/wrench')],

# prefix=["xterm -hold -fa 'Monospace' -fs 14 -e "],
# output='screen',
# emulate_tty=True,
Expand Down

0 comments on commit 4ad3ca7

Please sign in to comment.