Gazebo | Ignition | Community
Ask Your Question

gazebo ros drone with two front cameras

asked 2017-02-04 03:07:02 -0500

this post is marked as community wiki

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

Hi. Is it possible to make Gazebo simulation environment for drone model with ROS? There should be two cameras connected to OpenCV on front of drone. It would be great, if i could use ROS with Java. If yes, could you explain how to do this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-04 07:39:54 -0500

Jose Luis Rivero gravatar image

It is possible to make drone simulations in Gazebo and using ROS. There is some information from 3D Robotics and Erle Robotics is really good providing ROS + Gazebo support out-of-the-box for their family of robots (see Erle-copter).

Once you have the images published in the ROS ecosystem (you will need to use the gazebo_ros_pkgs wrappers), it should be easy to use all the opencv support in ROS.

About using Java, I don't have previous experience but: the simulation code will probably need to be in C++ (Gazebo does not support Java). Once you have the simulated images in ROS, you can have any mixture of programming languages since ROS use the transport layer for communicating in runtime and does not care about which language you use to create nodes.

edit flag offensive delete link more


Thank you, Jose. Your answer helped me and saved a lot of time. But i didn't understand one thing about languages because of my low English level. What did you mean when you said about C++ simulation code? Won't i use java(or any JVM language) code to control robots?

vovanrew gravatar imagevovanrew ( 2017-02-04 12:37:26 -0500 )edit

I was referring to any code needed to interact with Gazebo API in the form of a Gazebo plugin. If you are using ROS, that will automatically done for you through gazebo_ros_pkgs After you get the data in ROS you can use ROS Java yes.

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2017-03-02 12:23:25 -0500 )edit

Question Tools

1 follower


Asked: 2017-02-04 03:07:02 -0500

Seen: 1,169 times

Last updated: Feb 04 '17