Skip to content

Commit ca1e6d4

Browse files
committed
add joint velocity controller
1 parent 8e47a1b commit ca1e6d4

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

src/lab_sim/config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ros2_control:
7979
- "servo_controller"
8080
- "joint_trajectory_admittance_controller"
8181
- "velocity_force_controller"
82+
- "joint_velocity_controller"
8283
# Any controllers here will not be spawned by MoveIt Pro.
8384
# [Optional, default=[]]
8485
controllers_not_managed: []

src/lab_sim/config/control/picknik_ur.ros2_control.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ controller_manager:
1515
type: joint_trajectory_admittance_controller/JointTrajectoryAdmittanceController
1616
velocity_force_controller:
1717
type: velocity_force_controller/VelocityForceController
18+
joint_velocity_controller:
19+
type: joint_velocity_controller/JointVelocityController
1820

1921

2022
joint_state_broadcaster:
@@ -278,3 +280,39 @@ velocity_force_controller:
278280
# command_joints: []
279281
# The type of command interface to use. Supported values are "position" and "velocity".
280282
command_interfaces: ["position"]
283+
284+
285+
joint_velocity_controller:
286+
ros__parameters:
287+
# Joints that the controller will claim.
288+
planning_group_name: manipulator
289+
# Maximum joint-space velocities.
290+
max_joint_velocity:
291+
- 1.0
292+
- 1.0
293+
- 1.0
294+
- 1.0
295+
- 1.0
296+
- 1.0
297+
- 1.0
298+
# Maximum joint-space accelerations.
299+
max_joint_acceleration:
300+
- 2.0
301+
- 2.0
302+
- 2.0
303+
- 2.0
304+
- 2.0
305+
- 2.0
306+
- 2.0
307+
# Rate in Hz at which the controller will publish the state.
308+
state_publish_rate: 10
309+
# Timeout in seconds after which the controller will stop motion if no new commands are received.
310+
command_timeout: 0.2
311+
# Padding (in radians) to add to joint position limits as a safety margin.
312+
joint_limit_position_tolerance: 0.02
313+
# Joints that the controller will command. If not specified, if takes the same value as `joints`.
314+
# This can be useful to implement layered control, where some joints may be controlled by a different controller
315+
# downstream.
316+
# command_joints: []
317+
# The type of command interface to use. Supported values are "position" and "velocity".
318+
command_interfaces: ["position"]

0 commit comments

Comments
 (0)