Struct Ros2Twist
A body velocity command, matching geometry_msgs/msg/Twist.
public readonly record struct Ros2Twist : IEquatable<Ros2Twist>
- Implements
- Inherited Members
Remarks
This is what a ROS 2 robot is driven by on cmd_vel.
Constructors
Ros2Twist(Vector3, Vector3)
A body velocity command, matching geometry_msgs/msg/Twist.
public Ros2Twist(Vector3 Linear, Vector3 Angular)
Parameters
LinearVector3The linear velocity in metres per second.
AngularVector3The angular velocity in radians per second.
Remarks
This is what a ROS 2 robot is driven by on cmd_vel.
Properties
Angular
The angular velocity in radians per second.
public Vector3 Angular { get; init; }
Property Value
Linear
The linear velocity in metres per second.
public Vector3 Linear { get; init; }