raaslab / mavros_offboard_control

MAVROS offboard control
29 stars 12 forks source link

waypoint_control with take off node #1

Closed levenberg closed 7 years ago

levenberg commented 7 years ago

In UAVWaypointControl.cpp, the flight mode set and arming set were commented. So I userosrun uav_control uav_take_off node to arming the drone, after that roslaunch uav_control waypoint_control.launch to start the waypoint mission. However, the uav_take_off node was shutdown

Reason given for shutdown:[new node registered with same name].

So what is the problem? Thanks, Huai

kevinlyu1 commented 7 years ago

That means that you are trying to run the node twice. You should run both of them again and look at the rosnode list to see if the node is still running. If it is still running than it's fine and ros just shut down the node because there is a duplicate.

levenberg commented 7 years ago

Thanks. I changed one of the node name thus both of them could run at the same time. So why did you comment the flight mode set and arming set in the waypoint mission and motion primitives mission?

kevinlyu1 commented 7 years ago

It didn't fit our needs, that's why we took it out of the code.