Skip to content

Commit eaf9e92

Browse files
committed
Fix Launcher
1 parent e77042e commit eaf9e92

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Launchers/pick_place_harmonic/pick_place_harmonic.launch.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from launch import LaunchDescription
88
from launch.actions import ExecuteProcess, RegisterEventHandler, TimerAction
99
from launch.event_handlers import OnProcessExit, OnProcessStart
10-
from launch_ros.actions import Node
10+
from launch_ros.actions import Node, SetParameter
1111
from ament_index_python.packages import get_package_share_directory
1212
from launch.actions import SetEnvironmentVariable
1313

@@ -239,7 +239,7 @@ def generate_launch_description():
239239
package="ros2srrc_execution",
240240
executable="move",
241241
output="screen",
242-
arguments=['--ros-args', '--log-level', 'debug'],
242+
arguments=['--ros-args', '--log-level', 'info'],
243243
parameters=[
244244
robot_description,
245245
robot_description_semantic,
@@ -306,6 +306,8 @@ def generate_launch_description():
306306
print(">>> LAUNCH: move_node configurado")
307307

308308
return LaunchDescription([
309+
SetParameter(name="use_sim_time", value=True),
310+
309311
set_gz_plugin_path,
310312
set_ld_library_path,
311313
gz,
@@ -342,7 +344,7 @@ def generate_launch_description():
342344
target_action=gripper_controller,
343345
on_exit=[
344346
TimerAction(
345-
period=5.0,
347+
period=12.0,
346348
actions=[move_group],
347349
)
348350
],
@@ -354,7 +356,7 @@ def generate_launch_description():
354356
target_action=move_group,
355357
on_start=[
356358
TimerAction(
357-
period=5.0,
359+
period=15.0,
358360
actions=[
359361
ExecuteProcess(cmd=["echo", ">>> move_group listo, lanzando ejecución"]),
360362
move_node,

0 commit comments

Comments
 (0)