Set robot speed back to 0.1 time_scale and 1ms sleep for stability
Browse files
frontend/interactive_server.py
CHANGED
|
@@ -413,7 +413,7 @@ def run_pipeline_threadsafe(websocket: WebSocket, user_prompt: str, loop, use_mo
|
|
| 413 |
def wrapped_step():
|
| 414 |
original_step()
|
| 415 |
if not current_sim.gui:
|
| 416 |
-
time.sleep(0.
|
| 417 |
curr_time = time.time()
|
| 418 |
if curr_time - last_stream_time[0] >= throttle_interval:
|
| 419 |
last_stream_time[0] = curr_time
|
|
|
|
| 413 |
def wrapped_step():
|
| 414 |
original_step()
|
| 415 |
if not current_sim.gui:
|
| 416 |
+
time.sleep(0.001)
|
| 417 |
curr_time = time.time()
|
| 418 |
if curr_time - last_stream_time[0] >= throttle_interval:
|
| 419 |
last_stream_time[0] = curr_time
|
llm_panda/robot_controller.py
CHANGED
|
@@ -55,8 +55,8 @@ class RobotController:
|
|
| 55 |
self._rest_poses.append(0.0)
|
| 56 |
|
| 57 |
# Time scale for slowing down/speeding up execution speed.
|
| 58 |
-
# < 1.0 increases speed. 0.
|
| 59 |
-
self.time_scale = 0.
|
| 60 |
|
| 61 |
# Sticky "joint got stuck" flag. Set by move_to_pose whenever a waypoint
|
| 62 |
# is unreachable (IK saturation / singularity). The closed-loop executor
|
|
|
|
| 55 |
self._rest_poses.append(0.0)
|
| 56 |
|
| 57 |
# Time scale for slowing down/speeding up execution speed.
|
| 58 |
+
# < 1.0 increases speed. 0.1 = 10x speed.
|
| 59 |
+
self.time_scale = 0.1
|
| 60 |
|
| 61 |
# Sticky "joint got stuck" flag. Set by move_to_pose whenever a waypoint
|
| 62 |
# is unreachable (IK saturation / singularity). The closed-loop executor
|