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 <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
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 <[email protected]>
* Added missing visible attributes
* Enable HIDE_SYMBOLS_BY_DEFAULT
---------

Signed-off-by: Jose Luis Rivero <[email protected]>
* Regroup tutorials into the 4 recommended categories
---------
Signed-off-by: Mabel Zhang <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
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 <[email protected]>
@Fixit-Davide Fixit-Davide requested a review from azeey as a code owner April 12, 2024 09:45
@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 <[email protected]>
Signed-off-by: Davide Graziato <[email protected]>
@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 <[email protected]>
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 <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Van Malleghem Antoine <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>

Signed-off-by: alexandrosnic <[email protected]>
Signed-off-by: Alexandros Nicolaou <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Added information on EGL checking

---------
Signed-off-by: Martin Pecka <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Athena Z <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Loading the logging playback plugin before `SceneBroadcaster`
prevents playback from being displayed on the GUI.



---------

Signed-off-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Arjo Chakravarty <[email protected]>
…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 <[email protected]>

* typo fix

Signed-off-by: Arjo Chakravarty <[email protected]>

* Make atomic

Signed-off-by: Arjo Chakravarty <[email protected]>

---------

Signed-off-by: Arjo Chakravarty <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
…azebosim#2632)

* Update links and fix image
* use image tag


Signed-off-by: Ian Chen <[email protected]>
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