Skip to content

Commit a62ec65

Browse files
committed
Tune on hw, turn off odom by default
1 parent 3c9ba44 commit a62ec65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

droidlet/lowlevel/hello_robot/remote/goto_controller.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
from utils import transform_global_to_base, transform_base_to_global
99

10-
V_MAX_DEFAULT = 0.15 # base.params["motion"]["default"]["vel_m"]
10+
V_MAX_DEFAULT = 0.2 # base.params["motion"]["default"]["vel_m"]
1111
W_MAX_DEFAULT = 0.45 # (vel_m_max - vel_m_default) / wheel_separation_m
1212
ACC_LIN = 1.6 # 4 * (base.params["motion"]["max"]["accel_m"])
13-
ACC_ANG = 9.6 # 4 * (2 * (accel_m_max - accel_m_max) / wheel_separation_m)
13+
ACC_ANG = 4.8 # 2 * (2 * (accel_m_max - accel_m_max) / wheel_separation_m)
1414

1515

1616
class GotoVelocityController:
@@ -20,7 +20,7 @@ def __init__(
2020
hz: float,
2121
v_max: Optional[float] = None,
2222
w_max: Optional[float] = None,
23-
use_odom: bool = True,
23+
use_odom: bool = False,
2424
):
2525
self.robot = robot
2626
self.hz = hz
@@ -129,7 +129,7 @@ def _run(self):
129129

130130
# Compute angular velocity
131131
k_t_ang = self._error_velocity_multiplier(
132-
heading_err_abs, ACC_ANG, tol=self.ang_error_tol, use_acc=self.use_odom
132+
heading_err_abs, ACC_ANG, tol=self.ang_error_tol / 2.0, use_acc=self.use_odom
133133
)
134134
w_cmd = np.sign(heading_err) * k_t_ang * self.w_max
135135

0 commit comments

Comments
 (0)