Example #1
0
 private Vector3 GetPosition(GeometryPoseStamped message)
 {
     return(new Vector3(
                message.pose.position.x,
                message.pose.position.y,
                message.pose.position.z));
 }
Example #2
0
 private Quaternion GetRotation(GeometryPoseStamped message)
 {
     return(new Quaternion(
                message.pose.orientation.x,
                message.pose.orientation.y,
                message.pose.orientation.z,
                message.pose.orientation.w));
 }
Example #3
0
        private void InitializeMessage()
        {
            message                    = new GeometryPoseStamped();
            message.header             = new StandardHeader();
            message.pose               = new GeometryPose();
            message.pose.orientation   = new GeometryQuaternion();
            message.pose.orientation.w = 1;

            message.header.frame_id = "map";
            message.header.stamp    = new StandardTime();
            // RaiseMessageRelease(new MessageEventArgs(message));
        }
Example #4
0
 private void InitializeMessage()
 {
     message        = new GeometryPoseStamped();
     message.header = new StandardHeader();
 }