Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dimos/robot/unitree_webrtc/type/odometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from dimos.robot.unitree_webrtc.type.timeseries import (
Timestamped,
)
from dimos.types.timestamped import to_timestamp

raw_odometry_msg_sample = {
"type": "msg",
Expand Down Expand Up @@ -95,10 +96,7 @@ def from_msg(cls, msg: RawOdometryMessage) -> "Odometry":
pose["orientation"].get("w"),
)

# ts = to_timestamp(msg["data"]["header"]["stamp"])
# lidar / video timestamps are not available from the robot
# so we are deferring to local time for everything
ts = time.time()
ts = to_timestamp(msg["data"]["header"]["stamp"])
return Odometry(position=pos, orientation=rot, ts=ts, frame_id="world")

def __repr__(self) -> str:
Expand Down