Skip to content

Commit

Permalink
remove extra controllers for the back suspension joints
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylitianyu committed Jul 21, 2022
1 parent 882a4d0 commit 7b92d26
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 39 deletions.
14 changes: 0 additions & 14 deletions mars_rover/config/mars_rover_control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ wheel_tree_position_controller:
joints:
- suspension_arm_F_L_joint
- suspension_arm_B_L_joint
- suspension_arm_B2_L_joint
- suspension_arm_F_R_joint
- suspension_arm_B_R_joint
- suspension_arm_B2_R_joint
command_interfaces:
- effort
state_interfaces:
Expand All @@ -99,10 +97,6 @@ wheel_tree_position_controller:
p: 4200.0
i: 10.0
d: 10.0
suspension_arm_B2_L_joint:
p: 1500.0
i: 10.0
d: 10.0
suspension_arm_F_R_joint:
p: 2200.0
i: 10.0
Expand All @@ -111,20 +105,12 @@ wheel_tree_position_controller:
p: 4200.0
i: 10.0
d: 10.0
suspension_arm_B2_R_joint:
p: 1500.0
i: 10.0
d: 10.0
enable:
suspension_arm_F_L_joint:
status: 1
suspension_arm_B_L_joint:
status: 1
suspension_arm_B2_L_joint:
status: 0
suspension_arm_F_R_joint:
status: 1
suspension_arm_B_R_joint:
status: 1
suspension_arm_B2_R_joint:
status: 0
2 changes: 1 addition & 1 deletion mars_rover/nodes/move_wheel
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class MoveWheel(Node):

target_val = Float64MultiArray()
if sus_val is None:
target_val.data = [0.3,-0.1,0.0,0.3,-0.1,0.0]
target_val.data = [0.3,-0.1,0.3,-0.1]
self.suspension_publisher_.publish(target_val)


Expand Down
12 changes: 0 additions & 12 deletions mars_rover/urdf/curiosity_mars_rover.gazebo
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_B2_L_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_F_R_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
Expand All @@ -118,12 +112,6 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_B2_R_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
</ros2_control>

<gazebo>
Expand Down
12 changes: 0 additions & 12 deletions mars_rover/urdf/curiosity_mars_rover.xacro.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_B2_L_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_F_R_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
Expand All @@ -121,12 +115,6 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<joint name="suspension_arm_B2_R_joint">
<command_interface name="effort"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
</ros2_control>
<gazebo>
<plugin filename="libign_ros2_control-system" name="ign_ros2_control::IgnitionROS2ControlPlugin">
Expand Down

0 comments on commit 7b92d26

Please sign in to comment.