38 lines
836 B
C#
38 lines
836 B
C#
namespace RobotNet10.Shared.Geometry;
|
|
|
|
/// <summary>
|
|
/// Pose message (geometry_msgs/Pose)
|
|
/// Represents a pose in free space, composed of position and orientation
|
|
/// </summary>
|
|
public struct Pose
|
|
{
|
|
/// <summary>
|
|
/// Position (Point)
|
|
/// </summary>
|
|
public Point Position { get; set; }
|
|
|
|
/// <summary>
|
|
/// Orientation (Quaternion)
|
|
/// </summary>
|
|
public Quaternion Orientation { get; set; }
|
|
|
|
/// <summary>
|
|
/// Default constructor
|
|
/// </summary>
|
|
public Pose()
|
|
{
|
|
Position = new Point();
|
|
Orientation = new Quaternion();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constructor with parameters
|
|
/// </summary>
|
|
public Pose(Point position, Quaternion orientation)
|
|
{
|
|
Position = position;
|
|
Orientation = orientation;
|
|
}
|
|
}
|
|
|