How can I get a dynamic ground plane?
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
Asked by Spython on 2020-07-03 08:58:31 UTC
Answers
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=set_velocity
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/gazebo_ros_pkgs/wiki/ROS-2-Migration:-Video
You could also use a texture that changes over time, sort of like a GIF, here's an example:
https://github.com/chapulina/simslides/tree/ROSCon_Sep2017/models/task_1_gif
Asked by chapulina on 2020-07-03 12:08:18 UTC
Comments
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
Asked by Spython on 2020-07-04 12:07:51 UTC
Comments