Skip to content

Commit

Permalink
降低加速度
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiang committed Jun 3, 2020
1 parent 2c7b51c commit 92c5299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
BROADCAST_PORT_V2 = 22002 # 局域网广播端口V2版本

MAX_VEL = 0.8
MAX_THETA = 3.0
MAX_THETA = 1.5
POWER_LOW = 9.8

TF_ROT = np.array([[0., 0., 1.],
Expand Down
4 changes: 2 additions & 2 deletions utils/monitor_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def parse_data(self, cmds):
self.global_move_pub.publish(global_move_flag)
if cmds[count][1] > 1:
self.speed_cmd.angular.z = max(
0.4, MAX_THETA * cmds[count][1] / 100.0 / temp_scale)
0.2, MAX_THETA * cmds[count][1] / 100.0 / temp_scale)
else:
self.speed_cmd.angular.z = MAX_THETA * \
cmds[count][1] / 100.0 / temp_scale
Expand All @@ -174,7 +174,7 @@ def parse_data(self, cmds):
self.global_move_pub.publish(global_move_flag)
if cmds[count][1] > 1:
self.speed_cmd.angular.z = min(
-0.4, -MAX_THETA * cmds[count][1] / 100.0 / temp_scale)
-0.2, -MAX_THETA * cmds[count][1] / 100.0 / temp_scale)
else:
self.speed_cmd.angular.z = -MAX_THETA * \
cmds[count][1] / 100.0 / temp_scale
Expand Down

0 comments on commit 92c5299

Please sign in to comment.