public override void Randomize() { header = new Messages.std_msgs.Header(); header.Randomize(); goal_id = new Messages.actionlib_msgs.GoalID(); goal_id.Randomize(); goal = new PoseGoal(); goal.Randomize(); }
public override bool Equals(IRosMessage ____other) { if (____other == null) { return(false); } bool ret = true; hector_uav_msgs.PoseGoal other = (hector_uav_msgs.PoseGoal)____other; ret &= target_pose.Equals(other.target_pose); return(ret); }
PoseGoal(PoseGoal pg) { target_pose = new PoseStamped(); target_pose.pose = new Pose(); target_pose.pose.orientation = new Quaternion(); target_pose.pose.orientation.x = pg.target_pose.pose.orientation.x; target_pose.pose.orientation.y = pg.target_pose.pose.orientation.y; target_pose.pose.orientation.z = pg.target_pose.pose.orientation.z; target_pose.pose.orientation.w = pg.target_pose.pose.orientation.w; target_pose.pose.position = new Point(); target_pose.pose.position.x = pg.target_pose.pose.position.x; target_pose.pose.position.y = pg.target_pose.pose.position.y; target_pose.pose.position.z = pg.target_pose.pose.position.z; target_pose.header = new Header(); target_pose.header.Frame_id = pg.target_pose.header.Frame_id; target_pose.header.Seq = pg.target_pose.header.Seq; target_pose.header.Stamp = new Time(pg.target_pose.header.Stamp.data); }
public override void Deserialize(byte[] SERIALIZEDSTUFF, ref int currentIndex) { header = new Messages.std_msgs.Header(SERIALIZEDSTUFF, ref currentIndex); goal_id = new Messages.actionlib_msgs.GoalID(SERIALIZEDSTUFF, ref currentIndex); goal = new PoseGoal(SERIALIZEDSTUFF, ref currentIndex); }