Skip to content

Commit

Permalink
Merge pull request #27 from xiaotudou33/master
Browse files Browse the repository at this point in the history
feat:加速微调过程
  • Loading branch information
shitoujie authored Feb 27, 2024
2 parents 0b264a4 + f28e845 commit 5f52800
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "server is finished"

docker run -it --rm --name client --network net-sim \
--gpus all \
--cpus=4.8 -m 8192M \
--cpus=2.8 -m 8192M \
-e ROS_MASTER_URI=http://ros-master:11311 \
-e DISPLAY=$DISPLAY \
-e QT_X11_NO_MITSHM=1 \
Expand Down
18 changes: 9 additions & 9 deletions src/rmus_solution/scripts/manipulater.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ def trimerworkCallback(self, req):
cmd_vel = [0.0, 0.0, 0.0]
#print(" pose in base",target_pos)

if (target_pos[0] - x_dis_tar) > 0.40:
cmd_vel[0] = 0.3
elif (target_pos[0] - x_dis_tar) > 0.30:
cmd_vel[0] = 0.15
# if (target_pos[0] - x_dis_tar) > 0.40:
# cmd_vel[0] = 0.3
if (target_pos[0] - x_dis_tar) > 0.30:
cmd_vel[0] = 0.25
elif (target_pos[0] - x_dis_tar) > 0.20:
cmd_vel[0] = 0.1
cmd_vel[0] = 0.18
elif (target_pos[0] - x_dis_tar) > 0.08:
cmd_vel[0] = 0.1
cmd_vel[0] = 0.13
elif (target_pos[0] - x_dis_tar) < -0.08:
cmd_vel[0] = -0.1
cmd_vel[0] = -0.13
elif (target_pos[0] - x_dis_tar) > 0.05:
cmd_vel[0] = 0.1
elif (target_pos[0] - x_dis_tar) < -0.05:
Expand Down Expand Up @@ -242,7 +242,7 @@ def trimerworkCallback(self, req):
flag = 0
y_threshold_p = 0.018
y_threshold_n = 0.018
x_dis_tar = 0.345
x_dis_tar = 0.385

while not rospy.is_shutdown():
target_marker_pose = self.current_marker_poses
Expand Down Expand Up @@ -443,7 +443,7 @@ def pre(self):
def pre2(self):
rospy.loginfo("<manipulater>: level 2 place")
pose = Pose()
pose.position.x = 0.19
pose.position.x = 0.21
pose.position.y = 0.015
self.arm_position_pub.publish(pose)

Expand Down

0 comments on commit 5f52800

Please sign in to comment.