|
| 1 | +mra6: |
| 2 | + # Publish all joint states ----------------------------------- |
| 3 | + joint_state_controller: |
| 4 | + type: joint_state_controller/JointStateController |
| 5 | + publish_rate: 50 |
| 6 | + |
| 7 | + # Mode controllers used to switch between control methods ---------------------------- |
| 8 | + position_joint_mode_controller: |
| 9 | + type: joint_mode_controller/JointModeController |
| 10 | + joint_mode: 1 # position |
| 11 | + |
| 12 | + velocity_joint_mode_controller: |
| 13 | + type: joint_mode_controller/JointModeController |
| 14 | + joint_mode: 2 # velocity |
| 15 | + |
| 16 | + # Position - Right and Left Joint Position Trajectory Controllers ------------------- |
| 17 | + arm_trajectory_controller: |
| 18 | + type: "position_controllers/JointTrajectoryController" |
| 19 | + joints: |
| 20 | + - J1 |
| 21 | + - J2 |
| 22 | + - J3 |
| 23 | + - J4 |
| 24 | + - J5 |
| 25 | + - J6 |
| 26 | + |
| 27 | + constraints: |
| 28 | + goal_time: 2.0 # Defaults to zero |
| 29 | + stopped_velocity_tolerance: 0.1 # Defaults to 0.01 |
| 30 | + J1: |
| 31 | + trajectory: 0 |
| 32 | + goal: 0.2 |
| 33 | + J2: |
| 34 | + trajectory: 0 |
| 35 | + goal: 0.2 |
| 36 | + J3: |
| 37 | + trajectory: 0 |
| 38 | + goal: 0.2 |
| 39 | + J4: |
| 40 | + trajectory: 0 |
| 41 | + goal: 0.2 |
| 42 | + J5: |
| 43 | + trajectory: 0 |
| 44 | + goal: 0.2 |
| 45 | + J6: |
| 46 | + trajectory: 0 |
| 47 | + goal: 0.2 |
| 48 | + |
| 49 | + state_publish_rate: 50 # Defaults to 50 |
| 50 | + action_monitor_rate: 20 # Defaults to 20 |
| 51 | + #hold_trajectory_duration: 0 # Defaults to 0.5 |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + # Position Controllers --------------------------------------- |
| 56 | + joint1_position_controller: |
| 57 | + type: position_controllers/JointPositionController |
| 58 | + joint: J1 |
| 59 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 60 | + joint2_position_controller: |
| 61 | + type: position_controllers/JointPositionController |
| 62 | + joint: J2 |
| 63 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 64 | + joint3_position_controller: |
| 65 | + type: position_controllers/JointPositionController |
| 66 | + joint: J3 |
| 67 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 68 | + joint4_position_controller: |
| 69 | + type: position_controllers/JointPositionController |
| 70 | + joint: J4 |
| 71 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 72 | + joint5_position_controller: |
| 73 | + type: position_controllers/JointPositionController |
| 74 | + joint: J5 |
| 75 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 76 | + joint6_position_controller: |
| 77 | + type: position_controllers/JointPositionController |
| 78 | + joint: J6 |
| 79 | + pid: {p: 100.0, i: 0.01, d: 10.0} |
| 80 | + |
| 81 | + |
| 82 | +# Velocity - Joint Velocity Trajectory Controllers ------------------- |
| 83 | + arm_velocity_trajectory_controller: |
| 84 | + type: "velocity_controllers/JointTrajectoryController" |
| 85 | + joints: |
| 86 | + - J1 |
| 87 | + - J2 |
| 88 | + - J3 |
| 89 | + - J4 |
| 90 | + - J5 |
| 91 | + - J6 |
| 92 | + |
| 93 | + constraints: |
| 94 | + goal_time: 2.0 # Defaults to zero |
| 95 | + stopped_velocity_tolerance: 0.4 # Defaults to 0.01 |
| 96 | + J1: |
| 97 | + trajectory: 0 |
| 98 | + goal: 0.2 |
| 99 | + J2: |
| 100 | + trajectory: 0 |
| 101 | + goal: 0.2 |
| 102 | + J3: |
| 103 | + trajectory: 0 |
| 104 | + goal: 0.2 |
| 105 | + J4: |
| 106 | + trajectory: 0 |
| 107 | + goal: 0.2 |
| 108 | + J5: |
| 109 | + trajectory: 0 |
| 110 | + goal: 0.2 |
| 111 | + J6: |
| 112 | + trajectory: 0 |
| 113 | + goal: 0.2 |
| 114 | + |
| 115 | + gains: |
| 116 | + J1: {p: 2.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 117 | + J2: {p: 3.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 118 | + J3: {p: 3.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 119 | + J4: {p: 3.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 120 | + J5: {p: 3.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 121 | + J6: {p: 3.0, i: 0.01, d: 1.0, i_clamp: 1} |
| 122 | + |
| 123 | + state_publish_rate: 50 # Defaults to 50 |
| 124 | + action_monitor_rate: 20 # Defaults to 20 |
| 125 | + #hold_trajectory_duration: 0 # Defaults to 0.5 |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
0 commit comments