-
Notifications
You must be signed in to change notification settings - Fork 360
Gravity set command fixed #3189
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
Conversation
arjo129
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also get an integration test to ensure this does not accidentally get deleted or broken?
|
Can you also fix the DCO signature following these instructions: https://github.com/gazebosim/gz-sim/pull/3189/checks?check_run_id=55365258481 |
e3544ff to
08f1544
Compare
Hi I have tried to add the test but I don't know if this works properly since I have a weak laptop it gives me an oom error. |
f4388de to
3c57783
Compare
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
…cs.cc Signed-off-by: Shivang <[email protected]>
3c57783 to
dfd5a25
Compare
|
One way I avoid OOM errors while building gazebo is to use |
It actually builds just fine and I tried running only the individual tests by running |
Signed-off-by: Shivang <[email protected]>
|
Thanks for you suggestion of manually running the binary that helped me find out that the out of memory error was actually not out of memory it was because of my code accidentally tried to double free a pointer. (I don't know why it said oom? maybe it just classifies memory errors as oom??) wierd!! |
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
|
LGTM once you get passed the style related issues flagged by the CI. I tested it and it works well. |
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
Signed-off-by: Shivang <[email protected]>
|
Ran |
Signed-off-by: Arjo Chakravarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed a minor style fix. LGTM! Thanks for your work on this.
|
@Mergifyio backport gz-sim10 gz-sim9 gz-sim8 ign-gazebo6 |
✅ Backports have been created
|
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]> (cherry picked from commit d2780bb)
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]> (cherry picked from commit d2780bb)
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]> (cherry picked from commit d2780bb)
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]> (cherry picked from commit d2780bb) # Conflicts: # src/SimulationRunner.cc # src/systems/physics/Physics.cc # test/integration/user_commands.cc
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- (cherry picked from commit d2780bb) Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Shivang <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]>
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- (cherry picked from commit d2780bb) Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Shivang <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]>
This pull requests solves the [issue](gazebosim/gz-physics#766) in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here. With this gazebo now supports changing gravity at runtime by running 'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }' --------- (cherry picked from commit d2780bb) Signed-off-by: Shivang <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Shivang <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]>

🦟 Bug fix
Summary
This pull requests solves the issue in gz-physics but since it requires changes in this repo instead of gz-physics I am opening this pr here.
With this gazebo now supports changing gravity at runtime by running
'gz service -s /world/world_demo/set_physics --reqtype gz.msgs.Physics --reptype gz.msgs.Boolean --timeout 2000 --req 'gravity { x: 0 y: 0 z: -2.8 }'Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.Signed-off-by: Shivang [email protected]