Gazebo | Ignition | Community
Ask Your Question
0

How can I get a dynamic ground plane?

asked 2020-07-03 08:58:31 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I added an image as ground plane but I want it to move with a constant linear or angular velocity. I want to achieve it by changing its pose as function of time.

How can I accomplish this task? Do I have to create a customized plugin? Is it also possible to have a video as ground plane?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-03 12:08:18 -0500

chapulina gravatar image

updated 2020-07-03 12:10:04 -0500

I want it to move with a constant linear or angular velocity

This tutorial goes over various ways of moving objects in simulation with a given velocity:

https://gazebosim.org/tutorials?tut=s...

Note that if your plane has a collision shape, it will carry the models laying on top of it. You can move just a model that has no collision but has a visual in case you just wan the visual to move.

Another possible way of doing this is with scripted trajectories:

gazebosim.org/tutorials?tut=set_velocity


Is it also possible to have a video as ground plane?

Yes, here's some explanation on how to do it with ROS 1 / 2:

https://github.com/ros-simulation/gaz...

You could also use a texture that changes over time, sort of like a GIF, here's an example:

https://github.com/chapulina/simslide...

edit flag offensive delete link more

Comments

1

Thanks for your reply. Anyway I found another solution. I used a transparent static ground plane so that objects on it doesn't move. I placed below it an object with the texture I need and used a plugin to make it move

Spython gravatar imageSpython ( 2020-07-04 12:07:51 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-07-03 08:58:31 -0500

Seen: 206 times

Last updated: Jul 03 '20