Skip to content
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

Introducing RvizDisplay #1216

Merged
merged 11 commits into from
Jan 29, 2024
Merged

Introducing RvizDisplay #1216

merged 11 commits into from
Jan 29, 2024

Conversation

cmastalli
Copy link
Member

This PR introduces a third option for displaying Crocoddyl results in Rviz, i.e., RvizDisplay.

RvizDisplay uses our whole-body-state-rviz plugin to nicely display:

  • Robot motions
  • CoM position and velocities
  • Center of Pressure and Instantaneous Capture Point
  • Contact forces and support polygon
  • CoM and contact trajectories
  • Final robot target

This Rviz plugin uses standardized ROS messages that we use in our MPC work. Those ROS messages are generic enough to be used in other robotics platforms. Indeed, this Rviz plugin can be used in our quadrotor and manipulator examples.

Additionally, we have rendered the ROS communication as efficient as possible. This is done by introducing crocoddyl_msgs. Crocoddyl messages include C++ implementation of ROS publishers and subscribers. These C++ implementations are bound in Python for convenience. We have headly tested in our MPC works as well.

Finally, these packages and our RvizDisplay support ROS 1 and ROS 2.

Below, I share a short clip demonstrating this display. You just need to do crocoddyl.RvizDisplay(...).

Screen.Recording.2024-01-29.at.15.02.15.mov

@cmastalli cmastalli merged commit 5dbeed5 into loco-3d:devel Jan 29, 2024
4 of 8 checks passed
@cmastalli cmastalli deleted the topic/rviz-display branch January 29, 2024 22:50
nim65s added a commit to nim65s/robotpkg that referenced this pull request May 31, 2024
Changed in v2.1.0:

* Updated black + isort + flake8 to ruff in loco-3d/crocoddyl#1256
* Exported version for Python in loco-3d/crocoddyl#1254
* Added pinocchio 3 preliminary support in loco-3d/crocoddyl#1253
* Updated CMake packaging in loco-3d/crocoddyl#1249
* Fixed ruff reported error in loco-3d/crocoddyl#1248
* Fixed yapf reported errors in loco-3d/crocoddyl#1238
* Tested Python stubs in Conda CI in loco-3d/crocoddyl#1228
* Fixed Rviz display in loco-3d/crocoddyl#1227
* Improved CI, updated cmake and fixed launch file in loco-3d/crocoddyl#1220
* Introduced a Rviz display in loco-3d/crocoddyl#1216
* Enabled display of thrust and simplied displayers code in loco-3d/crocoddyl#1215
* Introduced floating base thruster actuation model in loco-3d/crocoddyl#1213
* Fixed quadruped and biped examples in loco-3d/crocoddyl#1208
* Fixed terminal computation in Python models in loco-3d/crocoddyl#1204
* Fixed handling of unbounded values for `ActivationBounds` in loco-3d/crocoddyl#1191
nim65s added a commit to nim65s/robotpkg that referenced this pull request Jun 20, 2024
Changed in v2.1.0:

* Updated black + isort + flake8 to ruff in loco-3d/crocoddyl#1256
* Exported version for Python in loco-3d/crocoddyl#1254
* Added pinocchio 3 preliminary support in loco-3d/crocoddyl#1253
* Updated CMake packaging in loco-3d/crocoddyl#1249
* Fixed ruff reported error in loco-3d/crocoddyl#1248
* Fixed yapf reported errors in loco-3d/crocoddyl#1238
* Tested Python stubs in Conda CI in loco-3d/crocoddyl#1228
* Fixed Rviz display in loco-3d/crocoddyl#1227
* Improved CI, updated cmake and fixed launch file in loco-3d/crocoddyl#1220
* Introduced a Rviz display in loco-3d/crocoddyl#1216
* Enabled display of thrust and simplied displayers code in loco-3d/crocoddyl#1215
* Introduced floating base thruster actuation model in loco-3d/crocoddyl#1213
* Fixed quadruped and biped examples in loco-3d/crocoddyl#1208
* Fixed terminal computation in Python models in loco-3d/crocoddyl#1204
* Fixed handling of unbounded values for `ActivationBounds` in loco-3d/crocoddyl#1191
nim65s added a commit to nim65s/robotpkg that referenced this pull request Jul 1, 2024
Changed in v2.1.0:

* Updated black + isort + flake8 to ruff in loco-3d/crocoddyl#1256
* Exported version for Python in loco-3d/crocoddyl#1254
* Added pinocchio 3 preliminary support in loco-3d/crocoddyl#1253
* Updated CMake packaging in loco-3d/crocoddyl#1249
* Fixed ruff reported error in loco-3d/crocoddyl#1248
* Fixed yapf reported errors in loco-3d/crocoddyl#1238
* Tested Python stubs in Conda CI in loco-3d/crocoddyl#1228
* Fixed Rviz display in loco-3d/crocoddyl#1227
* Improved CI, updated cmake and fixed launch file in loco-3d/crocoddyl#1220
* Introduced a Rviz display in loco-3d/crocoddyl#1216
* Enabled display of thrust and simplied displayers code in loco-3d/crocoddyl#1215
* Introduced floating base thruster actuation model in loco-3d/crocoddyl#1213
* Fixed quadruped and biped examples in loco-3d/crocoddyl#1208
* Fixed terminal computation in Python models in loco-3d/crocoddyl#1204
* Fixed handling of unbounded values for `ActivationBounds` in loco-3d/crocoddyl#1191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant