lite_biped: real base-IMU ros2_control sensor block - #11
Merged
Conversation
The lite_biped real (RobStride) branch previously had no IMU -- the base
IMU only existed on the sim/mock combined block (MujocoSystem). Emit a
standalone <ros2_control type="sensor"> block ("LiteBipedIMU") on the
real branch driven by imu.real_plugin, exposing the SAME base_imu
interfaces as sim, so imu_sensor_broadcaster republishes /imu/data
identically on sim and real (no standalone IMU driver node).
- robot_assets generator: _real_imu_block() + thread imu_port through the
real macro / top macro / assembly, conditional on imu.real_plugin
(no-op for robots without a real IMU -- regenerating the fleet only
changes lite_biped)
- ros2_control.json: imu.real_plugin =
humanoid_devices_imu_hardware/YahboomImuSensor, real_block_name, and an
imu_port arg (default /dev/ttyUSB0)
- regenerated lite_biped.ros2_control.xacro + lite_biped.urdf.xacro
Pairs with Berkeley-Humanoids/humanoid_control_ros2 (the YahboomImuSensor
plugin + imu_sensor_broadcaster wiring).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012QKJQ9hze1hMWXJpdPcjp3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a real base-IMU to
lite_bipedso the sameimu_sensor_broadcasterpublishes/imu/dataon sim and real (previously the IMU existed only on the sim/mock block).robot_assets):_real_imu_block()emits a standalone<ros2_control type="sensor">block on the real branch whenros2_control.json'simucarries areal_plugin;imu_portthreaded through the real/top macros + assembly. All conditional — regenerating every robot changes onlylite_biped(verified).ros2_control.json:imu.real_plugin = humanoid_devices_imu_hardware/YahboomImuSensor,real_block_name,imu_portarg.lite_biped.ros2_control.xacro+lite_biped.urdf.xacro(real block exposes the same 10base_imuinterfaces as sim; well-formed;test_ros2_artifactsinvariants hold).Pairs with Berkeley-Humanoids/humanoid_control_ros2 (the
YahboomImuSensorplugin +imu_sensor_broadcasterwiring) — merge together.🤖 Generated with Claude Code
https://claude.ai/code/session_012QKJQ9hze1hMWXJpdPcjp3