Messages

actionlib

GoalStatus

class actionlib_msgs.msg.GoalStatus

Message type indicating the status of a goal in an actions server. Used by the SimpleActionClient implemented by ROS and axros’ layer over it.

The specific attributes of the message are also used in order to indicate a specific type of status.

PENDING

A constant of the message type used to indicate a pending goal. Truly set to 0.

ACTIVE

A constant of the message type used to indicate a active goal. Truly set to 1.

PREEMPTED

A constant of the message type used to indicate a preempted goal. Truly set to 2.

SUCCEEDED

A constant of the message type used to indicate a goal which succeeded. Truly set to 2.

Alarms

Alarm

class ros_alarms_msgs.msg.Alarm

A message representing a ROS Alarm.

alarm_name

The name of the alarm.

Type

str

raised

Whether the alarm was raised.

Type

bool

node_name

The node name associated with the alarm.

Type

str

problem_description

The problem description associated with the alarm.

Type

str

parameters

The JSON parameters associated with the alarm.

Type

str

severity

The severity of the alarm.

Type

int

Geometry Messages

Quaternion

Attributes
class geometry_msgs.msg.Quaternion

A message type representing a quaternion.

w

The first element of the quaternion.

Return type

float

x

The second element of the quaternion.

Return type

float

y

The third element of the quaternion.

Return type

float

z

The fourth element of the quaternion.

Return type

float

Point

Attributes
class geometry_msgs.msg.Point

A ROS message type representing a single point.

x

The x-value of the point.

Type

float

y

The y-value of the point.

Type

float

z

The z-value of the point.

Type

float

PointStamped

Attributes
class geometry_msgs.msg.PointStamped

A ROS message type representing a single PointStamped.

header

The header associated with the point.

Type

Header

point

The position associated with the point

Type

Point

Vector3

Attributes
class geometry_msgs.msg.Vector3

A ROS message type representing a three-dimensional vector.

x

The x-value of the vector.

Type

float

y

The y-value of the vector.

Type

float

z

The z-value of the vector.

Type

float

Pose

Attributes
class geometry_msgs.msg.Pose

A ROS message type representing an object’s pose.

position

The position of the pose.

Type

Pose

orientation

The orientation of the pose.

Type

Quaternion

Pose2D

Attributes
class geometry_msgs.msg.Pose2D

A ROS message type representing an object’s pose in two dimensions.

x

The x-value of the pose.

Type

float

y

The y-value of the pose.

Type

float

theta

The theta value of the pose.

Type

float

PoseWithCovariance

Attributes
class geometry_msgs.msg.PoseWithCovariance

A ROS message type representing an object’s pose, along with a covariance.

pose

The object’s pose.

Type

Pose

covariance

The object’s covariance. Consists of a list of 36 values.

Type

List[float]

Transform

Attributes
class geometry_msgs.msg.Transform

A ROS message type representing an object’s transform.

translation

The translation of the transform.

Type

Vector3

rotation

The rotation of the transform.

Type

Quaternion

TransformStamped

class geometry_msgs.msg.TransformStamped

A stamped ROS message type representing an object’s transform.

header

The header of the message.

Type

Header

child_frame_id

The ID of the child frame.

Type

str

transform

The transform in the message.

Type

Transform

Accel

Attributes
class geometry_msgs.msg.Accel

A ROS message type representing an object’s acceleration.

linear

The linear acceleration of the twist.

Type

Vector3

angular

The angular acceleration of the twist.

Type

Vector3

Twist

Attributes
class geometry_msgs.msg.Twist

A ROS message type representing an object’s twist.

linear

The linear direction of the twist.

Type

Vector3

angular

The angular direction of the twist.

Type

Vector3

TwistWithCovariance

Attributes
class geometry_msgs.msg.TwistWithCovariance

A ROS message type representing an object’s twist, along with a covariance.

twist

The object’s twist.

Type

Twist

covariance

The object’s covariance. Consists of a list of 36 values.

Type

List[float]

Polygon

Attributes
class geometry_msgs.msg.Polygon

A ROS message type representing a polygon.

points

The points constructing the polygon.

Type

List[Point]

Wrench

Attributes
class geometry_msgs.msg.Wrench

A ROS message type representing the wrench of an object.

force

The force associated with the object.

Type

Vector3

torque

The torque associated with the object.

Type

Vector3

WrenchStamped

Attributes
class geometry_msgs.msg.WrenchStamped

A ROS message type representing the wrench of an object with an associated header.

header

The header associated with the message.

Type

Header

wrench

The wrench associated with the object.

Type

Wrench

MIL Messages

PoseTwist

Attributes
class mil_msgs.msg.PoseTwist

A ROS message type representing an object’s pose and twist.

pose

The pose of the object.

Type

Pose

twist

The twist of the object.

Type

Twist

acceleration

The acceleration of the object.

Type

Accel

ObjectInImage

class mil_msgs.msg.ObjectInImage

A ROS message type representing the position of an object in an image.

name

The name of the object.

Type

str

points

The center of the object in the image.

Type

Point2D

confidence

The confidence of the object’s position, ranging between 0 and 1.

Type

float

attributes

???

Type

str

Point2D

Attributes
class mil_msgs.msg.Point2D

A ROS message type representing an x and y position in a 2D space.

x

The x-position.

Type

float

y

The y-position.

Type

float

Networking Messages

Host

Attributes

A custom message definition responsible for associating a hostname and IP address with a status.

The name of the host.

Type

str

The IP address of the host.

Type

str

The status of the host.

Type

str

Hosts

Attributes

A custom message definition representing a group of hosts together.

A custom, constant string representing a group of hostnames. The string is equal to:

mil-nav-wamv mil-nav-ubnt-wamv mil-nav-ubnt-shore mil-com-velodyne-vlp16 mil-com-sick-lms111

Type

str

The hosts belonging to the group.

Type

List[Host]

Passive Sonar Messages

HydrophoneSamples

class mil_passive_sonar.msg.HydrophoneSamples

A custom message definition to represent data coming from the hydrophones.

channels

The number of channels supported by the hydrophones.

Type

int

samples

The number of samples on each channel.

Type

int

sample_rate

The rate at which samples are recorded, per channel. Equal to the number of samples per second.

Type

int

data

The data recorded from the hydrophones. Each “word” in the data is a piece of data from one hydrophone, such as H0 H1 H2 H3 H0 H1 ....

Type

List[int]

HydrophoneSamplesStamped

class mil_passive_sonar.msg.HydrophoneSamplesStamped

A custom message definition to represent time-stamped data coming from the hydrophones.

header

The message header.

Type

Header

hydrophone_samples

The hydrophone samples received.

Type

HydrophoneSamples

Ping

class mil_passive_sonar.msg.Ping

A custom message definition to represent a ping from channels of data.

Danger

This class is deprecated, and has been replaced by HydrophoneSamples and HydrophoneSamplesStamped. Support for this message type throughout the repository still exists, although it may be removed in the future.

header

The message header.

Type

Header

channels

The number of channels supported by the hydrophones.

Type

int

samples

The number of samples on each channel.

Type

int

sample_rate

The rate at which samples are recorded, per channel. Equal to the number of samples per second.

Type

int

data

The data recorded from the hydrophones. Each “word” in the data is a piece of data from one hydrophone, such as H0 H1 H2 H3 H0 H1 ....

Type

List[int]

ProcessedPing

class mil_passive_sonar.msg.ProcessedPing

A custom message definition to represent a ping from channels of data.

header

The message header.

Type

Header

position

The position of the processed ping.

Type

Point

freq

The frequency of the processed ping.

Type

float

amplitude

The amplitude of the processed ping.

Type

float

valid

Whether the processed ping is valid.

Type

bool

Triggered

class mil_passive_sonar.msg.Triggered

A custom message definition to represent ???.

header

The message header.

Type

Header

hydrophone_samples

???

Type

HydrophoneSamples

trigger_time

The time at which the ping was detected.

Type

float

Standard Messages

ColorRGBA

Attributes
class std_msgs.msg.ColorRGBA

A ROS message type representing a color with RGB and an alpha channel.

r

The red value of the color.

Type

float

g

The green value of the color.

Type

float

b

The blue value of the color.

Type

float

a

The alpha value of the color.

Type

float

Sensor Messages

Image

class sensor_msgs.msg.Image

A ROS message to represent an image.

header

The header associated with the message.

Type

Header

height

The height of the image.

Type

int

width

The width of the image.

Type

int

encoding

The encoding of the image.

Type

str

is_bigendian

Whether the image uses the big-endian format to store values.

Type

bool

step

Full length of a row, in bytes.

Type

int

data

Actual image data. The size of the list is equal to step multiplied by the number of rows.

Type

List[int]

PointField

class sensor_msgs.msg.PointField

A ROS message type to represent a field in a point cloud.

INT8

Constant of the data type that can be used to represent the data type of a value in the field. Set to 1 in the message definition.

Type

int

UINT8

Constant of the data type that can be used to represent the data type of a value in the field. Set to 2 in the message definition.

Type

int

INT16

Constant of the data type that can be used to represent the data type of a value in the field. Set to 3 in the message definition.

Type

int

UINT16

Constant of the data type that can be used to represent the data type of a value in the field. Set to 4 in the message definition.

Type

int

INT32

Constant of the data type that can be used to represent the data type of a value in the field. Set to 5 in the message definition.

Type

int

UINT32

Constant of the data type that can be used to represent the data type of a value in the field. Set to 6 in the message definition.

Type

int

FLOAT32

Constant of the data type that can be used to represent the data type of a value in the field. Set to 7 in the message definition.

Type

int

FLOAT64

Constant of the data type that can be used to represent the data type of a value in the field. Set to 8 in the message definition.

Type

int

name

The name of the field.

Type

str

offset

The offset from the start of the point struct.

Type

int

datatype

The datatype, represented by using one of the attributes above.

Type

int

count

The number of elements in the field.

Type

int

PointCloud2

class sensor_msgs.msg.PointCloud2

A ROS message type indicating a point cloud.

header

The message header.

Type

Header

height

The height of the point cloud. If the cloud is unordered, then 1.

Type

int

width

The width of the point cloud. If the cloud is unordered, then this value is set to the length of the point cloud.

Type

int

fields

The fields in the point cloud.

Type

List[PointField]

is_bigendian

Whether the field is big endian.

Type

bool

point_step

The length of a point in bytes.

Type

int

row_step

The length of a row in bytes.

Type

int

data

The actual data inside the point cloud. The size of the array is row_step multiplied by height.

Type

List[int]

is_dense

True if there are no invalid points.

Type

bool

Motor Feedback

class roboteq_msgs.msg.Feedback

A third-party ROS message type for getting feedback from motor controllers.

header

The header of the message.

Type

Header

motor_current

Current flowing through the motors.

Type

float

motor_power

Relative motor power, as a proportion of the full motor power. Lives in a range from -1 to 1.

Type

float

commanded_velocity

The velocity commanded of the motor. Output is in rad/s.

Type

float

measured_velocity

The true velocity of the motor. Output is in rad/s.

Type

float

measured_position

The position of the motor, in rad. Wraps around -6/6M.

Type

float

supply_voltage

The voltage supplied to the motor, in volts.

Type

float

supply_current

The current supplied to the motor, in amps.

Type

float

motor_temperature

The temperature of the motor, in Celsius.

Type

float

channel_temperature

The temperature of the FETs, as reported by the controller. Units are in Celsius.

Type

float

Motor Status

class roboteq_msgs.msg.Status

A third-party ROS message type for getting status from motor controllers.

header

The header of the message.

Type

Header

fault

A representation of any fault that occurred in the motor. Likely one of the enumerated fault types of this class.

Type

int

FAULT_OVERHEAT

Constant attribute used to represent that the motor experienced a fault as a result of overheating.

Type

int

Value

1

FAULT_OVERVOLTAGE

Constant attribute used to represent that the motor experienced a fault as a result of too much voltage.

Type

int

Value

2

FAULT_UNDERVOLTAGE

Constant attribute used to represent that the motor experienced a fault as a result of too little voltage.

Type

int

Value

4

FAULT_SHORT_CIRCUIT

Constant attribute used to represent that the motor experienced a fault as a result of a short circuit.

Type

int

Value

8

FAULT_EMERGENCY_STOP

Constant attribute used to represent that the motor experienced a fault as a result of an emergency stop.

Type

int

Value

16

FAULT_SEPEX_EXCITATION_FAULT

Constant attribute used to represent that the motor experienced a fault as a result of an excitation error.

Type

int

Value

32

FAULT_MOSFET_FAILURE

Constant attribute used to represent that the motor experienced a fault as a result of a failure in the MOSFET system.

Type

int

Value

64

FAULT_STARTUP_CONFIG_FAULT

Constant attribute used to represent that the motor experienced a fault as a result of a failure in the startup configuration.

Type

int

Value

128

status

The status of the motor. Likely set to a combination of the class’ enumerated types.

Type

int

STATUS_SERIAL_MODE

Constant attribute used to represent that the motor is in serial mode.

Type

int

Value

1

STATUS_PULSE_MODE

Constant attribute used to represent that the motor is in pulse mode.

Type

int

Value

2

STATUS_ANALOG_MODE

Constant attribute used to represent that the motor is in analog mode.

Type

int

Value

4

STATUS_POWER_STAGE_OFF

Constant attribute used to represent that the power stage of the motor is off.

Type

int

Value

8

STATUS_STALL_DETECTED

Constant attribute used to represent that a stall was detected.

Type

int

Value

16

STATUS_AT_LIMIT

Constant attribute used to represent that the motor is at its limit.

Type

int

Value

32

STATUS_MICROBASIC_SCRIPT_RUNNING

Constant attribute used to represent that the microbasic script is running.

Type

int

Value

128

ic_temperature

The temperature of the main logic chip, in Celsius.

Type

float

internal_voltage

The internal voltage, in volts.

Type

float

adc_voltage

The voltage of the analog-to-digital converter, in volts.

Type

float

VRX Messages

DockShape

The shape of the dock. Likely either DockShape.CROSS, DockShape.CIRCLE, or DockShape.TRIANGLE.

Type

str

The dock holds the cross shape.

Type

str

The dock holds the circle shape.

Type

str

The dock holds the triangle shape.

Type

str

The color of the dock. Likely either DockShape.RED, DockShape.BLUE, or DockShape.GREEN.

Type

str

The dock shape is red.

Type

str

The dock shape is blue.

Type

str

The dock shape is green.

Type

str

The x-dimension of the center of the dock shape.

Type

int

The y-dimension of the center of the dock shape.

Type

int

The message header.

Type

Header

???

Type

List[Point]

The relative confidence that the color prediction is correct.

Type

float

The relative confidence that the shape prediction is correct.

Type

float

DockShapes

Attributes

A custom message definition to represent the presence of multiple dock shapes found by the vision system.

The list of shapes found.

Type

List[DockShape]

ScanTheCode

Attributes

A custom message definition to represent the color pattern show by a Scan The Code totem.

The pattern shown. R stands for red, B stands for blue, and G stands for green.

Type

str