Skip to content

Extend supported sensors#170

Merged
vikashplus merged 4 commits into
devfrom
extend_supported_sensors
Jul 9, 2026
Merged

Extend supported sensors#170
vikashplus merged 4 commits into
devfrom
extend_supported_sensors

Conversation

@vikashplus

Copy link
Copy Markdown
Owner

Extended robot class to support generic sensor data.

…rry complex data from the hardware into sensordata field of the model. Reply on sensordata field to create obs and obs_dicts
@vikashplus vikashplus requested a review from andreh1111 July 4, 2026 00:14
…e 0-d scalars

squeeze_dims() previously did a blanket np.squeeze(), which removed every
singleton dimension instead of just the (num_traj=1, horizon=1) wrapper
added by expand_dims(). Single-value observations (e.g. shape (1,)) were
squeezed all the way down to 0-d scalars, which then failed to concatenate
with other proprio/obs vectors in get_proprioception() and obsdict2obsvec().
Now only squeeze the leading axes that expand_dims actually added, leaving
real data dimensions (and pre-existing scalar rwd_dict entries) untouched.
@vikashplus vikashplus merged commit b148fd2 into dev Jul 9, 2026
1 check passed
@vikashplus vikashplus deleted the extend_supported_sensors branch July 9, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant