Robotics StackExchange | Archived questions

Lightweight alternatives to Gazebo

Because of the capability of my virtual machine I need to get a development environment going without using Gazebo because I believe Gazebo is a real resource "user". This is for students with modest needs and means. I would like them to be able to write and play with relatively simple res programs. For simulation they would need:

I think Rviz could do all that if combined with a "headless" simulated robot. But maybe not. And maybe there is a better way. Thanks for your tips and/or links!

Update:

I really think that's what I need, but I can't figure out how to do it. Still looking for any other approaches or links or questions or suggestions!

Asked by pitosalas on 2020-04-22 06:21:44 UTC

Comments

Just a comment:

I think Rviz could do all that

RViz != simulator. It's only a visualisation tool.

Asked by gvdhoorn on 2020-04-22 07:08:03 UTC

Yeah as gvdhoorn mentioned RVIZ is only a data visualization tool. I would have to say that if you were to only run Gazebo with a simplified physics model of the environment (say for a 2 wheeled robot on a flat plane) with no lidar or camera simulation, Gazebo is considerably lightweight. You can view the car's position in RVIZ if you feel the gazebo client is hogging resources. However, if you require a simulated lidar, I dont think it is possible to simulate it efficiently as far as I know since lidar requires some sort of line tracing and interaction with the environment, all in real time. This task typically requires a GPU to perform more efficiently as I believe there is an optimized velodyne 16 / 32 / 64 plane plugin that works much better than the CPU version. However, for very modest laptops with modest CPUs, I am afraid lidar simulation might be very challenging.

Asked by hashirzahir on 2020-04-22 07:17:47 UTC

@gvdhoorn and @hashirzahir I was aware of that, this is why I said with a "headless" simulated robot. Maybe that was unclear. I am digging into STDR as an option. Any more thoughts?

Asked by pitosalas on 2020-04-22 09:46:42 UTC

What do you mean by "headless"?

Asked by gvdhoorn on 2020-04-22 12:25:51 UTC

https://en.wikipedia.org/wiki/Headless_software

Asked by pitosalas on 2020-04-22 12:29:56 UTC

I know what headless means. I was specifically asking what "headless robot" changes to the statement "I think Rviz could do all that", considering RVis is not a simulator.

Asked by gvdhoorn on 2020-04-22 12:31:02 UTC

I think you know now what I meant. Update: I've been using stdr and for the first few "assignments" it seems to work well.Just with a simulated lidar. I dont know (and dont think) it can simulate a camera. And also have not looked into how to make a new map for it. But it's promising!

Asked by pitosalas on 2020-04-22 16:59:58 UTC

Yes gazebo can be run with gui:=false if you only want the gazebo server (physics engine and ros bridge) but not the gazebo client (the gazebo UI that pops up with 3d world). Depending on how you are launching your simulated environment, it can be done something like roslaunch sim_env gazebo.launch gui:=false. This has worked for me before as well. Perhaps you can explain why this is not working for you?

Asked by hashirzahir on 2020-04-22 23:03:19 UTC

Not starting gzclient does help, but plugins which use the GPU will still require proper hw.

Asked by gvdhoorn on 2020-04-23 05:40:41 UTC

Answers