Skip to content

Commit 939b00c

Browse files
committed
Refactor tutorial to support TrajectoryCache refactor
Signed-off-by: methylDragon <[email protected]>
1 parent 474b242 commit 939b00c

File tree

2 files changed

+241
-118
lines changed

2 files changed

+241
-118
lines changed

doc/how_to_guides/trajectory_cache/launch/trajectory_cache_move_group.launch.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from ament_index_python.packages import get_package_share_directory
44

55
from launch import LaunchDescription
6-
from launch.actions import DeclareLaunchArgument, ExecuteProcess
7-
from launch.substitutions import LaunchConfiguration, TextSubstitution
8-
6+
from launch.actions import ExecuteProcess, TimerAction
97
from launch_ros.actions import Node
8+
109
from moveit_configs_utils import MoveItConfigsBuilder
1110

1211
joint_limits_path = os.path.join(
@@ -108,8 +107,8 @@ def generate_launch_description():
108107
rviz_node,
109108
static_tf,
110109
robot_state_publisher,
111-
run_move_group_node,
112110
ros2_control_node,
111+
TimerAction(period=2.0, actions=[run_move_group_node]),
113112
]
114113
+ load_controllers
115114
)

0 commit comments

Comments
 (0)