Hello to everybody,
my own program for the exercise 4.6 went pretty well. But to make the drone flying around is a problem.
It doesn’t work. After take off the drone is still standing in the air and will land as requireed after taking 10 pictures.
I studied my program several times and compared it finally with the given solution. The given solution of the course works perfectly. I produced for that program a new package to separate it from my own staff. My own program listing looks very similar and my program is running pretty good as well only the cruise flight sequence to make the drone flying around after take off doesn’t work. It seems to me the command “pub_flight.publish(flight_msg)” doesn’t reach the drone action server
I assume the mistake in anywhere by using the geometry_msg.msg.
Here the commands I used:
from geometry_msgs.msg import Twist
pub_flight = rospy.Publisher("/drone/cmd_vel", Twist, queue_size=10)
while state_result < DONE:
flight_msg.linear.x = 2
flight_msg.angular.z = 2
pub_flight.publish(flight_msg)
rate.sleep()
I’m appreciate to get some help or hints for new ideas to find the mistake
Thanks a lot
Matthias