[ros-users] tf::Vector3 to look at tf::Quaternion

Jack O'Quin jack.oquin at gmail.com
Sat Mar 31 13:27:36 UTC 2012


On Sat, Mar 31, 2012 at 6:23 AM, Gonçalo Cabrita <goncabrita at gmail.com> wrote:
>
> My program uses a Kinect to extract cylinders using PCL and draws them in
> rviz, or at least its supposed to! The problem is that the model from PCL
> provides me with a Vector3 that represents the axis of the cylinder and to
> draw it as a Marker on rviz I need to convert this into a quaternion. I also
> have access to a random point along the axis of the cylinder so I made the
> following function to extract the top and bottom points of the axis of the
> cylinder:

[...]

> Would this be a good question of answers.ros.og? Perhaps if I make it more
> general in terms of the conversion between Vector3 and a look at Quaternion?

Yes. That is the right forum for questions like this.
-- 
 joq



More information about the ros-users mailing list