Skip to content

Commit

Permalink
Fix bringup template (#195)
Browse files Browse the repository at this point in the history
* adjust JTC default configuration

* set JTC as default active controller for bringup template

* so that setup-moveit-package planning and execution works out of the box
  • Loading branch information
Nibanovic authored Apr 8, 2024
1 parent b3cd47c commit bfe94dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions templates/ros2_control/robot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ joint_trajectory_controller: # delete entry if controller is no
- joint5
- joint6

command_interfaces:
- position
state_interfaces:
- position

state_publish_rate: 50.0 # Defaults to 50
action_monitor_rate: 20.0 # Defaults to 20

Expand Down
2 changes: 1 addition & 1 deletion templates/ros2_control/robot_ros2_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def generate_launch_description():
declared_arguments.append(
DeclareLaunchArgument(
"robot_controller",
default_value="forward_position_controller",
default_value="joint_trajectory_controller",
choices=["forward_position_controller", "joint_trajectory_controller"],
description="Robot controller to start.",
)
Expand Down
2 changes: 1 addition & 1 deletion templates/ros2_control/robot_ros2_control.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Authors: Riyan Jose, Manuel Muth, Dr. Denis
default="false"
description="Enable mock command interfaces for sensors used for simple simulations. Used only if 'use_mock_hardware' parameter is true."/>
<arg name="robot_controller"
default="forward_position_controller"
default="joint_trajectory_controller"
description="Robot controller to start. Choices are: [forward_position_controller, joint_trajectory_controller]."/>
<arg name="inactive_robot_controller"
default="forward_position_controller"
Expand Down

0 comments on commit bfe94dd

Please sign in to comment.