forked from lbr-stack/lbr_fri_ros2_stack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
202 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ int main(int argc, char **argv) { | |
rclcpp::spin(node); | ||
rclcpp::shutdown(); | ||
return 0; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
# Use of /** so that the configurations hold for controller | ||
# managers regardless of their namespace. Usefull in multi-robot setups. | ||
/**/controller_manager: | ||
ros__parameters: | ||
update_rate: 1000 | ||
|
||
# ROS 2 control broadcasters | ||
joint_state_broadcaster: | ||
type: joint_state_broadcaster/JointStateBroadcaster | ||
|
||
force_torque_broadcaster: | ||
type: force_torque_sensor_broadcaster/ForceTorqueSensorBroadcaster | ||
|
||
# LBR ROS 2 control broadcasters | ||
lbr_state_broadcaster: | ||
type: lbr_ros2_control/LBRStateBroadcaster | ||
|
||
# ROS 2 control controllers | ||
joint_trajectory_controller: | ||
type: joint_trajectory_controller/JointTrajectoryController | ||
|
||
forward_position_controller: | ||
type: position_controllers/JointGroupPositionController | ||
|
||
# LBR ROS 2 control controllers | ||
lbr_joint_position_command_controller: | ||
type: lbr_ros2_control/LBRJointPositionCommandController | ||
|
||
lbr_torque_command_controller: | ||
type: lbr_ros2_control/LBRTorqueCommandController | ||
|
||
lbr_wrench_command_controller: | ||
type: lbr_ros2_control/LBRWrenchCommandController | ||
|
||
cartesian_impedance_controller: | ||
type: cartesian_impedance_controller/CartesianImpedanceController | ||
|
||
gravity_compensation: | ||
type: gravity_compensation/GravityCompensation | ||
|
||
motion_control_handle: | ||
type: cartesian_controller_handles/MotionControlHandle | ||
|
||
/**/force_torque_broadcaster: | ||
ros__parameters: | ||
frame_id: lbr/link_ee # namespace: https://github.com/ros2/rviz/issues/1103 | ||
sensor_name: estimated_ft_sensor | ||
|
||
/**/joint_trajectory_controller: | ||
ros__parameters: | ||
joints: | ||
- A1 | ||
- A2 | ||
- A3 | ||
- A4 | ||
- A5 | ||
- A6 | ||
- A7 | ||
command_interfaces: | ||
- position | ||
state_interfaces: | ||
- position | ||
- velocity | ||
state_publish_rate: 50.0 | ||
action_monitor_rate: 20.0 | ||
|
||
/**/forward_position_controller: | ||
ros__parameters: | ||
joints: | ||
- A1 | ||
- A2 | ||
- A3 | ||
- A4 | ||
- A5 | ||
- A6 | ||
- A7 | ||
interface_name: position | ||
|
||
/**/cartesian_impedance_controller: | ||
ros__parameters: | ||
|
||
# This is the tip of the robot tool that you usually use for your task. | ||
# For instance, it could be the drilling bit of a screwdriver or a grinding | ||
# tool. When you specify a target_wrench, i.e. some additional forces that | ||
# your robot should apply to its environment, that target_wrench gets | ||
# applied in this frame. | ||
end_effector_link: "link_tool" | ||
|
||
# This is usually the link directly before the first actuated joint. All | ||
# controllers will build a kinematic chain from this link up to | ||
# end_effector_link. It's also the reference frame for the superposition | ||
# of error components in all controllers. | ||
robot_base_link: "link_0" | ||
|
||
# This is the URDF link of your sensor. Sensor signals are assumed to be | ||
# given in this frame. It's important that this link is located somewhere | ||
# between end_effector_link and robot_base_link. If that's not the case, | ||
# the controllers won't initialize and will emit an error message. | ||
ft_sensor_ref_link: "link_ee" | ||
|
||
# This is the link that the robot feels compliant about. It does not need | ||
# to coincide with the end_effector_link, but for many use cases, this | ||
# configuration is handy. When working with a screwdriver, for instance, | ||
# setting compliance_ref_link == end_effector_link makes it easy to specify | ||
# downward pushing forces without generating unwanted offset moments. | ||
# On the other hand, an application could benefit from yielding a little in | ||
# the robot's wrist while drawing a line on a surface with a pen. | ||
compliance_ref_link: "link_tool" | ||
|
||
command_interfaces: | ||
- effort | ||
state_interfaces: | ||
- position | ||
- velocity | ||
joints: | ||
- A1 | ||
- A2 | ||
- A3 | ||
- A4 | ||
- A5 | ||
- A6 | ||
- A7 | ||
delta_tau_max: 1.0 # Nm | ||
stiffness: # w.r.t. compliance_ref_link coordinates | ||
trans_x: 2800.0 # 1900.0 | ||
trans_y: 2800.0 # 1900.0 | ||
trans_z: 1500.0 # 700.0 | ||
rot_x: 180.0 | ||
rot_y: 180.0 | ||
rot_z: 180.0 | ||
kuka: true | ||
/**/motion_control_handle: | ||
ros__parameters: | ||
end_effector_link: "link_tool" | ||
robot_base_link: "link_0" | ||
ft_sensor_ref_link: "link_ee" | ||
joints: | ||
- A1 | ||
- A2 | ||
- A3 | ||
- A4 | ||
- A5 | ||
- A6 | ||
- A7 | ||
|
||
/**/gravity_compensation: | ||
ros__parameters: | ||
end_effector_link: "link_tool" | ||
robot_base_link: "link_0" | ||
ft_sensor_ref_link: "link_ee" | ||
command_interfaces: | ||
- effort | ||
state_interfaces: | ||
- position | ||
- velocity | ||
joints: | ||
- A1 | ||
- A2 | ||
- A3 | ||
- A4 | ||
- A5 | ||
- A6 | ||
- A7 | ||
kuka: true |