Skip to content

Commit

Permalink
position_* -> joint_trajectory_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubii committed Dec 6, 2023
1 parent a0ba50d commit 5012ff2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LBRJointTrajectoryExecutionerNode : public rclcpp::Node {

joint_trajectory_action_client_ =
rclcpp_action::create_client<control_msgs::action::FollowJointTrajectory>(
this, "/lbr/position_trajectory_controller/follow_joint_trajectory");
this, "/lbr/joint_trajectory_controller/follow_joint_trajectory");

while (!joint_trajectory_action_client_->wait_for_action_server(std::chrono::seconds(1))) {
RCLCPP_INFO(this->get_logger(), "Waiting for action server to become available...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(
self.joint_trajectory_action_client_ = ActionClient(
node=self,
action_type=FollowJointTrajectory,
action_name="/lbr/position_trajectory_controller/follow_joint_trajectory",
action_name="/lbr/joint_trajectory_controller/follow_joint_trajectory",
)
while not self.joint_trajectory_action_client_.wait_for_server(1):
self.get_logger().info("Waiting for action server to become available...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControll

moveit_simple_controller_manager:
controller_names:
- position_trajectory_controller
- joint_trajectory_controller

position_trajectory_controller:
joint_trajectory_controller:
type: FollowJointTrajectory
action_ns: follow_joint_trajectory
default: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControll

moveit_simple_controller_manager:
controller_names:
- position_trajectory_controller
- joint_trajectory_controller

position_trajectory_controller:
joint_trajectory_controller:
type: FollowJointTrajectory
action_ns: follow_joint_trajectory
default: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControll

moveit_simple_controller_manager:
controller_names:
- position_trajectory_controller
- joint_trajectory_controller

position_trajectory_controller:
joint_trajectory_controller:
type: FollowJointTrajectory
action_ns: follow_joint_trajectory
default: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControll

moveit_simple_controller_manager:
controller_names:
- position_trajectory_controller
- joint_trajectory_controller

position_trajectory_controller:
joint_trajectory_controller:
type: FollowJointTrajectory
action_ns: follow_joint_trajectory
default: true
Expand Down
4 changes: 2 additions & 2 deletions lbr_ros2_control/config/lbr_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
type: lbr_ros2_control/EstimatedFTBroadcaster

# ROS 2 control controllers
position_trajectory_controller:
joint_trajectory_controller:
type: joint_trajectory_controller/JointTrajectoryController

forward_position_controller:
Expand All @@ -33,7 +33,7 @@
ros__parameters:
damping: 0.2

/**/position_trajectory_controller:
/**/joint_trajectory_controller:
ros__parameters:
joints:
- A1
Expand Down
4 changes: 2 additions & 2 deletions lbr_ros2_control/lbr_ros2_control/launch_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def arg_ctrl_cfg() -> DeclareLaunchArgument:
def arg_ctrl() -> DeclareLaunchArgument:
return DeclareLaunchArgument(
name="ctrl",
default_value="position_trajectory_controller",
default_value="joint_trajectory_controller",
description="Desired default controller. One of specified in ctrl_cfg.",
choices=[
"position_trajectory_controller",
"joint_trajectory_controller",
"forward_position_controller",
"forward_lbr_position_command_controller",
"forward_lbr_torque_command_controller",
Expand Down

0 comments on commit 5012ff2

Please sign in to comment.