Functions
object_recognition_clusters::convert_functions Namespace Reference

Functions

def change_pose_stamped_frame
 change the frame of a PoseStamped
def change_vector3_stamped_frame
 change the frame of a Vector3Stamped
def create_point_stamped
 create a PointStamped message
def create_pose_stamped
 create a PoseStamped message
def create_vector3_stamped
 create a Vector3Stamped message
def get_transform
 get the 4x4 transformation matrix from frame1 to frame2 from TF
def get_xyz
 get x, y, and z fields in the form of a list
def get_xyzw
 get x, y, z, and w fields in the form of a list
def lists_to_pose_stamped
 convert pos and rot lists (relative to in_frame) to a PoseStamped (relative to to_frame)
def mat_to_point_cloud
 convert a 4xn scipy matrix (x y z 1) to a PointCloud
def mat_to_pos_and_quat
 convert a 4x4 scipy matrix to position and quaternion lists
def mat_to_pose
def mat_to_transform
def point_cloud_to_mat
 convert a PointCloud or PointCloud2 to a 4xn scipy matrix (x y z 1)
def point_stamped_to_list
 convert a pointStamped to a pos list in a desired frame
def pose_stamped_to_lists
 convert a PoseStamped to pos and rot (quaternion) lists in a desired frame
def pose_to_mat
def pplist
 pretty-print list to string
def ppmat
 pretty-print numpy matrix to string
def quaternion_stamped_to_list
 convert a QuaternionStamped to a quat list in a desired frame
def rethrow_tf_exception
 catch a tf exception, print a message, rethrowing it first to preserve tracebacks
def set_xyz
 set x, y, and z fields with a list
def set_xyzw
 set x, y, z, and w fields with a list
def stamp_msg
 stamp a message by giving it a header with a timestamp of now
def stamp_pose
 make a PoseStamped out of a Pose
def stamp_vector3
 make a Vector3Stamped out of a Vector3
def transform_point_cloud
 transform a PointCloud or PointCloud2 to be a 4xn scipy matrix (x y z 1) in a new frame
def transform_pose_stamped
 transform a poseStamped by a 4x4 scipy matrix
def transform_to_mat
def vector3_stamped_to_list
 convert a Vector3Stamped to a rot list in a desired frame

Function Documentation

change the frame of a PoseStamped

Definition at line 323 of file convert_functions.py.

def object_recognition_clusters.convert_functions.change_vector3_stamped_frame (   tf_listener,
  vector3_stamped,
  frame 
)

change the frame of a Vector3Stamped

Definition at line 306 of file convert_functions.py.

def object_recognition_clusters.convert_functions.create_point_stamped (   point,
  frame_id = 'base_link' 
)

create a PointStamped message

Definition at line 381 of file convert_functions.py.

def object_recognition_clusters.convert_functions.create_pose_stamped (   pose,
  frame_id = 'base_link' 
)

create a PoseStamped message

Definition at line 371 of file convert_functions.py.

def object_recognition_clusters.convert_functions.create_vector3_stamped (   vector,
  frame_id = 'base_link' 
)

create a Vector3Stamped message

Definition at line 391 of file convert_functions.py.

def object_recognition_clusters.convert_functions.get_transform (   tf_listener,
  frame1,
  frame2 
)

get the 4x4 transformation matrix from frame1 to frame2 from TF

Definition at line 88 of file convert_functions.py.

get x, y, and z fields in the form of a list

Definition at line 215 of file convert_functions.py.

get x, y, z, and w fields in the form of a list

Definition at line 220 of file convert_functions.py.

def object_recognition_clusters.convert_functions.lists_to_pose_stamped (   tf_listener,
  pos,
  rot,
  in_frame,
  to_frame 
)

convert pos and rot lists (relative to in_frame) to a PoseStamped (relative to to_frame)

Definition at line 355 of file convert_functions.py.

convert a 4xn scipy matrix (x y z 1) to a PointCloud

Definition at line 66 of file convert_functions.py.

convert a 4x4 scipy matrix to position and quaternion lists

Definition at line 173 of file convert_functions.py.

def object_recognition_clusters.convert_functions.mat_to_pose (   mat,
  transform = None 
)
Convert a homogeneous matrix to a Pose message, optionally premultiply by a transform.

Args:
    mat (numpy.ndarray): 4x4 array (or matrix) representing a homogenous transform.
    transform (numpy.ndarray): Optional 4x4 array representing additional transform

Returns:
    pose (geometry_msgs.msg.Pose): Pose message representing transform.

Definition at line 117 of file convert_functions.py.

Convert a 4x5 scipy matrix to a transform message.

Args:
    mat (numpy.matrix): 4x4 numpy matrix
    transform (numpy.ndarray): Optional 4x4 array representing additional transform

Returns:
    transform (geometry_msgs.msg.Transform): Transform rospy message class.

Definition at line 155 of file convert_functions.py.

convert a PointCloud or PointCloud2 to a 4xn scipy matrix (x y z 1)

Definition at line 53 of file convert_functions.py.

def object_recognition_clusters.convert_functions.point_stamped_to_list (   tf_listener,
  point,
  frame 
)

convert a pointStamped to a pos list in a desired frame

Definition at line 246 of file convert_functions.py.

def object_recognition_clusters.convert_functions.pose_stamped_to_lists (   tf_listener,
  pose,
  frame 
)

convert a PoseStamped to pos and rot (quaternion) lists in a desired frame

Definition at line 340 of file convert_functions.py.

Convert a pose message to a 4x4 numpy matrix.

Args:
    pose (geometry_msgs.msg.Pose): Pose rospy message class.

Returns:
    mat (numpy.matrix): 4x4 numpy matrix

Definition at line 101 of file convert_functions.py.

pretty-print list to string

Definition at line 401 of file convert_functions.py.

pretty-print numpy matrix to string

Definition at line 406 of file convert_functions.py.

def object_recognition_clusters.convert_functions.quaternion_stamped_to_list (   tf_listener,
  quaternion,
  frame 
)

convert a QuaternionStamped to a quat list in a desired frame

Definition at line 286 of file convert_functions.py.

catch a tf exception, print a message, rethrowing it first to preserve tracebacks

Definition at line 416 of file convert_functions.py.

set x, y, and z fields with a list

Definition at line 202 of file convert_functions.py.

set x, y, z, and w fields with a list

Definition at line 209 of file convert_functions.py.

stamp a message by giving it a header with a timestamp of now

Definition at line 180 of file convert_functions.py.

make a PoseStamped out of a Pose

Definition at line 186 of file convert_functions.py.

make a Vector3Stamped out of a Vector3

Definition at line 194 of file convert_functions.py.

def object_recognition_clusters.convert_functions.transform_point_cloud (   tf_listener,
  point_cloud,
  frame 
)

transform a PointCloud or PointCloud2 to be a 4xn scipy matrix (x y z 1) in a new frame

Definition at line 78 of file convert_functions.py.

def object_recognition_clusters.convert_functions.transform_pose_stamped (   pose_stamped,
  transform,
  pre_or_post = "post" 
)

transform a poseStamped by a 4x4 scipy matrix

Definition at line 225 of file convert_functions.py.

Convert a tf transform to a 4x4 scipy mat.

Args:
    transform (geometry_msgs.msg.Transform): Transform rospy message class.

Returns:
    mat (numpy.matrix): 4x4 numpy matrix

Definition at line 140 of file convert_functions.py.

def object_recognition_clusters.convert_functions.vector3_stamped_to_list (   tf_listener,
  vector3,
  frame 
)

convert a Vector3Stamped to a rot list in a desired frame

Definition at line 266 of file convert_functions.py.



object_recognition_clusters
Author(s): Bence Magyar , Kaijen Hsiao
autogenerated on Wed Aug 26 2015 14:58:56