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

Publish Joint forces #2369

Closed
wants to merge 103 commits into from
Closed

Conversation

Fixit-Davide
Copy link

@Fixit-Davide Fixit-Davide commented Apr 12, 2024

🦟 Bug fix

Fixes #883

Summary

These changes should allow to obtain information regarding the forces applied to the joints.

Test it

  • Pull gz-physics PR: [featherstone] Publish JointFeedback forces. gz-physics#628
  • Launch gz sim --physics-engine gz-physics-bullet-featherstone-plugin lift_drag.sdf simulation.
  • Send a command to the model (gz topic -t "/model/lift_drag_demo_model/joint/rod_1_joint/cmd_force" -m gz.msgs.Double -p "data: 0.8").
  • Echo the topic: gz topic -e -t /world/lift_drag/model/lift_drag_demo_model/joint_state

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

iche033 and others added 15 commits October 10, 2023 13:32
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Several systems use const_cast in order to call
sdf::Element::GetElement with const ElementPtrs,
but the FindElement API can be used instead.

Also fix gz-sensors branch in custom sensor example

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
* Added missing visible attributes
* Enable HIDE_SYMBOLS_BY_DEFAULT
---------

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
… gz-cmake. (gazebosim#2283)

See gazebosim/gz-cmake#166 (comment)

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
* Regroup tutorials into the 4 recommended categories
---------
Signed-off-by: Mabel Zhang <mabel@openrobotics.org>
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
This implements a suggestion from gazebosim#1926 to delete
all `*VelocityCmd` components after each time step.
This also updates the logic for the following two systems
to handle this change:

* MulticopterMotorModel: handle missing component

Since JointVelocityCmd components are deleted after each
timestep, don't skip updating forces and moments if
the component does not exist, and use the
SetComponent API to more cleanly handle the component
creation logic. A syntax error in the the quadcopter test
worlds was fixed as well.

* TrajectoryFollower: don't need to remove commands

Now that the physics system is removing AngularVelocityCmd
components at every timestep, that logic can be removed
from the trajectory follower system.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Apr 12, 2024
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind to sign the commit ?

Signed-off-by: Davide Graziato <dgraziato10@gmail.com>
Signed-off-by: Davide Graziato <dgraziato10@gmail.com>
@azeey
Copy link
Contributor

azeey commented Apr 12, 2024

Also, can you please add a test?

@Fixit-Davide
Copy link
Author

I have just made a PR in gz-physics in order to populate the force fields while using bullet-featherstone. I added some information on how to test the code there (I have reported them here also).

Signed-off-by: Ian Chen <ichen@openrobotics.org>
iche033
iche033 previously approved these changes Apr 24, 2024
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can you please add a test?

oh just saw that a test was requested.

@iche033 iche033 dismissed their stale review April 24, 2024 00:27

waiting for a test to be added

iche033 and others added 27 commits September 4, 2024 18:46
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Van Malleghem Antoine <antoine.vanmalleghem@botronics.be>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>

Signed-off-by: alexandrosnic <alexnic31@gmail.com>
Signed-off-by: Alexandros Nicolaou <34197007+alexandrosnic@users.noreply.github.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Van Malleghem Antoine <antoine.vanmalleghem@botronics.be>
Signed-off-by: Van Malleghem Antoine <antoine.vanmalleghem@botronics.be>
Signed-off-by: Van Malleghem Antoine <antoine.vanmalleghem@botronics.be>
Added information on EGL checking

---------
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
…CC 1.13.2. (gazebosim#2606)

Signed-off-by: Martin Pecka <peci1@seznam.cz>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Athena Z <athenaz@google.com>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Loading the logging playback plugin before `SceneBroadcaster`
prevents playback from being displayed on the GUI.



---------

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Arjo Chakravarty <arjoc@intrinsic.ai>
…im#2619)

* Adds a regression test for logplayback

gazebosim/gazebo_test_cases#1640

This commit adds a really simple regression check to make sure we
actually publish on the right topic.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* typo fix

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Make atomic

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

---------

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
Signed-off-by: Martin Pecka <peci1@seznam.cz>
Signed-off-by: Martin Pecka <peci1@seznam.cz>
Signed-off-by: Martin Pecka <peci1@seznam.cz>
Signed-off-by: Martin Pecka <peci1@seznam.cz>
…azebosim#2632)

* Update links and fix image
* use image tag


Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

JointStatePublisher does not publish efforts