Skip to content

Definition of target pose #2

@roboticswithjulia

Description

@roboticswithjulia

Hello,
Regarding the following code: how could you know which is the target pose? Do you create a specific frame for this target pose?

set target pose

    _try:
        tf_listener.waitForTransform('/desired_camera_frame', '/tag_0', rospy.Time(), rospy.Duration(4.0))
        (t_target, R_target) = tf_listener.lookupTransform('/desired_camera_frame', '/tag_0', rospy.Time(0))
    except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException):
        print 'Error! Cannot find [tag_0] to [desired_camera_frame] tf.'
        sys.exit(0)_

Regards and thanks,

Júlia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions