Table of Contents

Struct Ros2Twist

Namespace
Pamoja.Ros2
Assembly
Pamoja.Ros2.dll

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

Linear Vector3

The linear velocity in metres per second.

Angular Vector3

The 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

Vector3

Linear

The linear velocity in metres per second.

public Vector3 Linear { get; init; }

Property Value

Vector3