The position controller only publishes control commands if the user has entered “GPS mode” by pushing the “B” button by default on the Xbox controller. The “take off” mode, enabled by pushing the “A” button by default, sets the desired waypoint altitude to 1 meters. The “land” ...
geometry_msgs::Twist twist; #if (GAZEBO_MAJOR_VERSION >= 8) fromVector(link->RelativeLinearVel(), twist.linear); fromVector(link->RelativeAngularVel(), twist.angular); #else fromVector(link->GetRelativeLinearVel(), twist.linear); fromVector(link->GetRelativeAngularVel(), twist.angular)...