Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ZChen57
Beginner
682 Views

How to set the quaternion parameter for position control?

Jump to solution

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

Accepted Solutions
Eliza_D_Intel
Employee
66 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
67 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