-
Notifications
You must be signed in to change notification settings - Fork 706
docs: reorganize Go2 platform docs + map framing default #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,8 @@ | |
| from dimos.mapping.costmapper import CostMapper | ||
| from dimos.mapping.relocalization.module import RelocalizationModule | ||
| from dimos.mapping.voxels import VoxelGridMapper | ||
| from dimos.memory2.module import Recorder, RecorderConfig | ||
| from dimos.memory2.module import Recorder, RecorderConfig, pose_setter_for | ||
| from dimos.msgs.geometry_msgs.Pose import Pose | ||
| from dimos.msgs.geometry_msgs.PoseStamped import PoseStamped | ||
| from dimos.msgs.sensor_msgs.Image import Image | ||
| from dimos.msgs.sensor_msgs.PointCloud2 import PointCloud2 | ||
|
|
@@ -58,6 +59,17 @@ class Go2Memory(Recorder): | |
| odom: In[PoseStamped] | ||
| config: Go2MemoryConfig | ||
|
|
||
| _last_odom_pose: Pose | None = None | ||
|
|
||
| @pose_setter_for("odom") | ||
| def _odom_pose(self, msg: PoseStamped) -> Pose | None: | ||
| self._last_odom_pose = msg | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is why I'm not fond of too much magic. My understanding is that If we used async we wouldn't have to worry so much about concurrent read/writes. Also, what does |
||
| return self._last_odom_pose | ||
|
|
||
| @pose_setter_for("lidar") | ||
| def _lidar_pose(self, msg: PointCloud2) -> Pose | None: | ||
| return self._last_odom_pose # should always exist (odom alwyas wins the race) | ||
|
|
||
|
|
||
| unitree_go2_markers = ( | ||
| autoconnect( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.