Hi, I tried to simulate the mission plan part of intel-aero/sample-apps but some errors occurred. My steps are as follows.
make posix_sitl_default gazebo
roslaunch mavros px4.launch fcu_url:="udp://:email@example.com:14557"
roslaunch aero_fly_mission aero_fly_mission.launch file:="home/kumaron/Plan"
And the errors are as follows.
kumaron@ubuntu:~$ roslaunch aero_fly_mission aero_fly_mission.launch file:="/home/kumaron/Plan"
... logging to /home/kumaron/.ros/log/05884c98-dda2-11e8-b9df-843a4b933d20/roslaunch-ubuntu-16916.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://ubuntu:37473/
* /rosdistro: kinetic
* /rosversion: 1.12.14
process[aero_fly_mission-1]: started with pid 
[ERROR] [1541055166.822923790]: : read error
[ERROR] [1541055166.823026524]: Fatal: error in loading waypoints from the file /home/kumaron/Plan!!
[aero_fly_mission-1] process has died [pid 16941, exit code -6, cmd /home/kumaron/catkin_ws/devel/lib/aero_fly_mission/node /home/kumaron/Plan __name:=aero_fly_mission __log:=/home/kumaron/.ros/log/05884c98-dda2-11e8-b9df-843a4b933d20/aero_fly_mission-1.log].
log file: /home/kumaron/.ros/log/05884c98-dda2-11e8-b9df-843a4b933d20/aero_fly_mission-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
How could I do the aero_fly_mission SITL simulation in gazebo and QGroundControl correctly? Thanks in advance!
Thank you for your reply, I followed the instructions.
Actually I found that I missed one important annotation in aero_fly_mission_node.cpp
catch (std::exception const& e)
// NOTE: QGC waypointplan (JSON) may contain 'params' valueas 'null';
// in that case we may get execption. Make sure to keep 'params' values to be 0.
ROS_ERROR("Fatal: error in loading waypoints from the file %s!!", argv);
I found that QGC waypoint plan file contained 'params' values 'null'. After changing 'null' to 0, I could launch the aero_fly_mission.launch and the simulation worked.
Now I'm wondering if the Intel Aero Ready to Fly Drone takes off in the offboard mode, how could I send waypoints to the Intel Aero Ready to Fly Drone and let it execute the fly mission?
Thanks in advance!
You can plan a mission in QGroundControl.
You can find instructions here:
Let me know if this helps.
Thank you for your reply.
Actually, I know how to plan a mission in QGroundControl. In the aero_fly_mission, the mission is executed in the mission mode. I want to execute the waypoint mission in the offboard mode. Should I switch offboard mode to the mission mode to execute the mission? Or is there a method to execute the mission directly in the offboard mode?
I am just running sample code on laptop to do simulation.
I'll study the offboard mode and mission mode further myself.
Thank you for your patience and reply!