Skip to content

Commit

Permalink
delete notGood servers
Browse files Browse the repository at this point in the history
  • Loading branch information
duISIR committed May 26, 2023
1 parent 9e75727 commit 3368ff9
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 3,735 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
name="action_server_cmd_config"
pkg="chonk_pushing"
ns="/$(arg robot_name)"
type="action_server_cmd_config.py"
type="action_server_cmd_config_wholetrajectory.py"
output="screen"
>
<param name="cmd_topic_name" type="string" value="/$(arg robot_name)/ActionCmdConfigPositionController/command"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def feedback_cb(self, feedback):
rospy.init_node('cmd_pose_client_MPC_BC_operational_pick', anonymous=True)
client = actionlib.SimpleActionClient('/chonk/cmd_pose', CmdChonkPoseForceAction)

force = 50
force = 30
m_box = 1.2

# Initialize node class
Expand Down Expand Up @@ -258,8 +258,8 @@ def feedback_cb(self, feedback):

args['target_force_R'] = [0, force, 0]
args['target_force_L'] = [0, -force, 0]
args['target_position_R'] = [3.85, 2-0.142, 1.27]
args['target_position_L'] = [3.85, 2+0.142, 1.27]
args['target_position_R'] = [3.85, 2-0.142, 1.31]
args['target_position_L'] = [3.85, 2+0.142, 1.31]

# Initialize node class
args['duration']=4.0
Expand All @@ -280,8 +280,8 @@ def feedback_cb(self, feedback):

args['target_force_R'] = [0, force, 0]
args['target_force_L'] = [0, -force, 0]
args['target_position_R'] = [3.85, -2-0.142, 1.27]
args['target_position_L'] = [3.85, -2+0.142, 1.27]
args['target_position_R'] = [3.85, -2-0.142, 1.31]
args['target_position_L'] = [3.85, -2+0.142, 1.31]

# Initialize node class
args['duration']=8
Expand Down Expand Up @@ -389,10 +389,10 @@ def feedback_cb(self, feedback):
)

args['target_position_R'] = [0.865, -0.12, 0.92]
ori_R = optas.spatialmath.Quaternion.fromrpy([np.pi, np.pi/2, 0]).getquat()
ori_R = optas.spatialmath.Quaternion.fromrpy([np.pi+np.pi/2, np.pi/2, 0]).getquat()
args['target_orientation_R'] = [ori_R[0], ori_R[1], ori_R[2], ori_R[3]]
args['target_position_L'] = [0.865, 0.12, 0.92]
ori_L = optas.spatialmath.Quaternion.fromrpy([np.pi, np.pi/2, 0]).getquat()
ori_L = optas.spatialmath.Quaternion.fromrpy([np.pi-np.pi/2, np.pi/2, 0]).getquat()
args['target_orientation_L'] = [ori_L[0], ori_L[1], ori_L[2], ori_L[3]]

# Initialize node class
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, name):
)
self.wholebodyMPC_planner_name = self.wholebodyMPC_planner.get_name()
# self.dt_MPC_planner = 0.1 # time step
self.T_MPC_planner = 10 # T is number of time steps
self.T_MPC_planner = 12 # T is number of time steps
# self.duration_MPC_planner = float(self.T_MPC_planner-1)*self.dt_MPC_planner
# nominal robot configuration
self.wholebodyMPC_planner_opt_idx = self.wholebodyMPC_planner.optimized_joint_indexes
Expand Down

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

0 comments on commit 3368ff9

Please sign in to comment.