Robotics StackExchange | Archived questions

How to run Software-in-loop simulation using ArduCopter SITL + Gazebo + MAVROS Melodic+ SLAM( Simultaneous localisation and mapping) for Quadcopter Drone in Simulation Environment?

Can anyone have an idea of how can SLAM in a simulation environment with a Quadcopter Drone can be set up? I would like to do it in Hector SLAM in ROS Rviz visualization with SITL Simulation. Since I am at the beginner level I could not able to find the working method of SLAM in Simulation Environment using Drones. Can anyone please help me or guide me to simulate SLAM technique in the SITL environment for drones? I have tried the following steps. but could not able to succeed.

I followed the steps with the following link https://ardupilot.org/dev/docs/ros-slam.html

And then Tried, Terminal 1: roscore Terminal 2: roslaunch iqsim lidar.launch ( This is the model with quadcopter lidar in gazebo simulation) Terminal 3: simvehicle.py -v ArduCopter -f gazebo-iris --console Terminal 4: roslaunch hectorslamlaunch tutorial.launch

Here, I get this warning [ WARN] [1602822361.947480687]: No transform between frames /map and scanmatcher_frame available after 20.002481 seconds of waiting. This warning only prints once.

Terminal 5: roslaunch mavros apm.launch fcu_url:=udp://:14855@

I have tried in this way, but nothing is popping up as mentioned in the above website,

can you help me, how can I do with rviz or please try to resolve my issue?

Thank you.

Asked by praveen on 2020-10-16 00:00:05 UTC

Comments

hi, i'm trying the same too but i haven't succeeded yet. I have to simulate a drone with arducopter so the transition to the real drone is easier. I can tell you however that the sitl with the command gazebo-iris cannot start. moreover the hector package gives you many topics to control the drone but it does not simulate the autopilot. it looks like someone managed to run px4.

Asked by peppegti on 2020-11-25 14:36:37 UTC

Even, I do not succeed yet. Trying to succeed.

Asked by praveen on 2020-11-27 06:49:00 UTC

Answers