Intel® Aero Platform For UAVs
Peer-to-peer support only
Announcements
This is a peer-to-peer only forum. This forum is not monitored by Intel.
774 Discussions

How to set the quaternion parameter for position control?

ZChen57
Beginner
838 Views

I am doing some position control with Intel Drone. First I let it go into offboard mode, then I set the position reference for the drone to follow through "mavros/set_position/pose" topic, the code is like this:

mypose = PoseStamped()

mypose .pose.position.x = 0

mypose .pose.position.y = 1

mypose .pose.position.z =3

mypose .pose.orientation.x =0

mypose .pose.orientation.y =0

mypose .pose.orientation.z =0

mypose .pose.orientation.w =1

 

pub.publish(mypose)

 

I just want the drone to reach the position coordinate (0,1,3), then how should I set the value for mypose .pose.orientation.x , mypose .pose.orientation.y, mypose .pose.orientation.z and mypose .pose.orientation.w?

 

0 Kudos
1 Solution
Eliza_D_Intel
Employee
222 Views
Hello ZChen57, Thank you for your interest in the Intel Aero Ready to Fly drone. Unfortunately, we did not test this program and we are unable to provide you a suitable answer. Since this questions imply ROS programming, the best source for a right solution will be the mavros GitHub Issue page - https://github.com/mavlink/mavros/issues Thank you and best regards, Eliza

View solution in original post

1 Reply
Eliza_D_Intel
Employee
223 Views
Hello ZChen57, Thank you for your interest in the Intel Aero Ready to Fly drone. Unfortunately, we did not test this program and we are unable to provide you a suitable answer. Since this questions imply ROS programming, the best source for a right solution will be the mavros GitHub Issue page - https://github.com/mavlink/mavros/issues Thank you and best regards, Eliza
Reply