Skip to content

Commit

Permalink
Cleanup controller config (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 2231745)

# Conflicts:
#	ign_ros2_control_demos/launch/cart_example_effort.launch.py
  • Loading branch information
ahcorde authored and mergify[bot] committed Sep 7, 2023
1 parent 8299d0c commit 403650e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
10 changes: 2 additions & 8 deletions ign_ros2_control_demos/config/cartpole_controller_effort.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ controller_manager:
ros__parameters:
update_rate: 1000 # Hz

effort_controllers:
effort_controller:
type: effort_controllers/JointGroupEffortController

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

effort_controllers:
effort_controller:
ros__parameters:
joints:
- slider_to_cart
command_interfaces:
- effort
state_interfaces:
- position
- velocity
- effort
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ velocity_controller:
ros__parameters:
joints:
- slider_to_cart
command_interfaces:
- velocity
state_interfaces:
- position
- velocity

imu_sensor_broadcaster:
ros__parameters:
Expand Down
2 changes: 1 addition & 1 deletion ign_ros2_control_demos/examples/example_effort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main(int argc, char * argv[])
std::make_shared<rclcpp::Node>("effort_test_node");

auto publisher = node->create_publisher<std_msgs::msg::Float64MultiArray>(
"/effort_controllers/commands", 10);
"/effort_controller/commands", 10);

RCLCPP_INFO(node->get_logger(), "node created");

Expand Down
5 changes: 5 additions & 0 deletions ign_ros2_control_demos/launch/cart_example_effort.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ def generate_launch_description():
output='screen'
)

<<<<<<< HEAD:ign_ros2_control_demos/launch/cart_example_effort.launch.py
load_joint_trajectory_controller = ExecuteProcess(
cmd=['ros2', 'control', 'load_controller', '--set-state', 'active', 'effort_controllers'],
=======
load_joint_effort_controller = ExecuteProcess(
cmd=['ros2', 'control', 'load_controller', '--set-state', 'active', 'effort_controller'],
>>>>>>> 2231745 (Cleanup controller config (#180)):gz_ros2_control_demos/launch/cart_example_effort.launch.py
output='screen'
)

Expand Down

0 comments on commit 403650e

Please sign in to comment.