Initial commit
This commit is contained in:
37
srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Pose.cs
Normal file
37
srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Pose.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user