gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
619 stars 251 forks source link

Added world linear and angular velocity reset components for link to `set_model_state` plugin #2440

Open yaswanth1701 opened 3 weeks ago

yaswanth1701 commented 3 weeks ago

🎉 New feature

Follow up PR to #2359

Summary

This PR introduces WorldLinearVelocityReset and WorldAngularVelocityReset components for the LInk entity to set initial link velocities from SDF using set_model_state plugin. The link velocities are only set to root link of the FreeGroup for now.

Test it

gz sim -v 4 examples/worlds/set_model_state.sdf

Should see the red cube moving and rotating.

ezgif-3-6b40df0406

Checklist

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.

yaswanth1701 commented 3 weeks ago

Hi Alejandro, I have made the required changes, can you please review them again.