Example #1
0
 public Obstacle()
 {
     rel_position = new geometry_msgs.Point();
     width = 0;
     height = 0;
     box_angle = 0;
 }
Example #2
0
 public Obstacle(geometry_msgs.Point _rel_position, float _width, float _height, float _box_angle)
 {
     rel_position = _rel_position;
     width = _width;
     height = _height;
     box_angle = _box_angle;
 }
Example #3
0
 public void FromJSON(JSONNode msg)
 {
     header.FromJSON(msg["header"]);
     cell_width = (float)msg["cell_width"].AsDouble;
     cell_height = (float)msg["cell_height"].AsDouble;
     foreach (var t in msg["cells"].Children)
     {
         geometry_msgs.Point temp = new geometry_msgs.Point();
         temp.FromJSON(t);
         cells.Add(temp);
     }
 }
Example #4
0
        public override bool Equals(IRosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret = true;

            geometry_msgs.Point other = (Messages.geometry_msgs.Point)____other;

            ret &= x == other.x;
            ret &= y == other.y;
            ret &= z == other.z;
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
Example #5
0
 /// <summary>
 /// Extends type <c>geometry_msgs.Point</c> with a method <c>ToVector3</c>, which creates a corresponding vector.
 /// </summary>
 /// <param name="point">The point message</param>
 /// <returns>Returns an instance of <c>Vector3</c>.</returns>
 public static Vector3 ToVector3(this geometry_msgs.Point point) =>
 new Vector3((float)point.x, (float)point.y, (float)point.z);
Example #6
0
 public Pose()
 {
     position    = new geometry_msgs.Point();
     orientation = new geometry_msgs.Quaternion();
 }
Example #7
0
 public Pose()
 {
     position = new geometry_msgs.Point();
     orientation = new geometry_msgs.Quaternion();
 }
Example #8
0
 public PointStamped()
 {
     header = new std_msgs.Header();
     point = new geometry_msgs.Point();
 }
Example #9
0
 public PointStamped()
 {
     header = new std_msgs.Header();
     point  = new geometry_msgs.Point();
 }