gazebo ros drone with two front cameras
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?
Asked by vovanrew on 2017-02-04 04:07:02 UTC
Answers
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.
Asked by Jose Luis Rivero on 2017-02-04 08:39:54 UTC
Comments
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?
Asked by vovanrew on 2017-02-04 13:37:26 UTC
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 http://wiki.ros.org/gazebo_ros_pkgs. After you get the data in ROS you can use ROS Java yes.
Asked by Jose Luis Rivero on 2017-03-02 13:23:25 UTC
Comments