Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added generic rrbot configuration file to use with controller spawning #599

Merged
merged 4 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,27 +1,44 @@
/rrbot_1/controller_manager:
/**/controller_manager:
ros__parameters:
update_rate: 10 # Hz

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster


/rrbot_1/forward_position_controller:
/**/forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
interface_name: position

/rrbot_1/forward_position_controller:
ros__parameters:
joints:
- rrbot_1_joint1
- rrbot_1_joint2
interface_name: position

/rrbot_2/forward_position_controller:
ros__parameters:
joints:
- rrbot_2_joint1
- rrbot_2_joint2

/rrbot_1/position_trajectory_controller:
ros__parameters:
type: joint_trajectory_controller/JointTrajectoryController
joints:
- rrbot_1_joint1
- rrbot_1_joint2

/rrbot_2/position_trajectory_controller:
ros__parameters:
joints:
- rrbot_2_joint1
- rrbot_2_joint2

/**/position_trajectory_controller:
ros__parameters:
type: joint_trajectory_controller/JointTrajectoryController

command_interfaces:
- position

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def generate_launch_description():
"description_package": "ros2_control_demo_example_1",
"description_file": "rrbot.urdf.xacro",
"runtime_config_package": "ros2_control_demo_example_15",
"controllers_file": "multi_controller_manager_rrbot_1_controllers.yaml",
"controllers_file": "multi_controller_manager_rrbot_generic_controllers.yaml",
"prefix": "rrbot_1_",
"use_mock_hardware": use_mock_hardware,
"mock_sensor_commands": mock_sensor_commands,
Expand All @@ -99,7 +99,7 @@ def generate_launch_description():
[
FindPackageShare("ros2_control_demo_example_15"),
"config",
"multi_controller_manager_rrbot_1_controllers.yaml",
"multi_controller_manager_rrbot_generic_controllers.yaml",
]
),
],
Expand All @@ -112,7 +112,7 @@ def generate_launch_description():
"description_package": "ros2_control_demo_example_5",
"description_file": "rrbot_system_with_external_sensor.urdf.xacro",
"runtime_config_package": "ros2_control_demo_example_15",
"controllers_file": "multi_controller_manager_rrbot_2_controllers.yaml",
"controllers_file": "multi_controller_manager_rrbot_generic_controllers.yaml",
"prefix": "rrbot_2_",
"use_mock_hardware": use_mock_hardware,
"mock_sensor_commands": mock_sensor_commands,
Expand All @@ -135,7 +135,7 @@ def generate_launch_description():
[
FindPackageShare("ros2_control_demo_example_15"),
"config",
"multi_controller_manager_rrbot_2_controllers.yaml",
"multi_controller_manager_rrbot_generic_controllers.yaml",
]
),
],
Expand Down
3 changes: 1 addition & 2 deletions example_15/doc/userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ Scenario: Using multiple controller managers on the same machine

* Launch file: `multi_controller_manager_example_two_rrbots.launch.py <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/example_15/bringup/launch/multi_controller_manager_example_two_rrbots.launch.py>`__
* Controllers yaml:
- `multi_controller_manager_rrbot_1_controllers.yaml <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/example_15/bringup/config/multi_controller_manager_rrbot_1_controllers.yaml>`__
- `multi_controller_manager_rrbot_2_controllers.yaml <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/example_15/bringup/config/multi_controller_manager_rrbot_2_controllers.yaml>`__
- `multi_controller_manager_generic_controllers.yaml <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/example_15/bringup/config/multi_controller_manager_generic_controllers.yaml>`__
* URDF file: `rrbot.urdf.xacro <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/example_15/description/urdf/rrbot.urdf.xacro>`__

* Description: `rrbot_description.urdf.xacro <https://github.com/ros-controls/ros2_control_demos/tree/{REPOS_FILE_BRANCH}/ros2_control_demo_description/rrbot/urdf/rrbot_description.urdf.xacro>`__
Expand Down
Loading