Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit c3d941d

Browse files
authored
add messages for ROS 2 iron (#14)
### Changelog Add message definitions for ROS2 iron ### Description Adds ROS2 iron messages. See details below for changes wrt. ROS2 humble. <details> <summary>diff -r msgdefs/ros2humble/ msgdefs/ros2iron</summary> ``` diff -r msgdefs/ros2humble/lifecycle_msgs/msg/State.msg msgdefs/ros2iron/lifecycle_msgs/msg/State.msg 17c17 < # This is the main state of the node’s life cycle. While in this state, the node --- > # This is the main state of the node's life cycle. While in this state, the node 29c29 < # In this transition state the node’s onConfigure callback will be called to --- > # In this transition state the node's onConfigure callback will be called to 33c33 < # In this transition state the node’s callback onCleanup will be called to clear --- > # In this transition state the node's callback onCleanup will be called to clear diff -r msgdefs/ros2humble/lifecycle_msgs/msg/TransitionDescription.msg msgdefs/ros2iron/lifecycle_msgs/msg/TransitionDescription.msg 23c23 < # The node’s onConfigure callback will be called to allow the node to load its --- > # The node's onConfigure callback will be called to allow the node to load its 27c27 < # The node’s callback onCleanup will be called in this transition to allow the --- > # The node's callback onCleanup will be called in this transition to allow the 125c125 < # This is the main state of the node’s life cycle. While in this state, the node --- > # This is the main state of the node's life cycle. While in this state, the node 137c137 < # In this transition state the node’s onConfigure callback will be called to --- > # In this transition state the node's onConfigure callback will be called to 141c141 < # In this transition state the node’s callback onCleanup will be called to clear --- > # In this transition state the node's callback onCleanup will be called to clear 185c185 < # This is the main state of the node’s life cycle. While in this state, the node --- > # This is the main state of the node's life cycle. While in this state, the node 197c197 < # In this transition state the node’s onConfigure callback will be called to --- > # In this transition state the node's onConfigure callback will be called to 201c201 < # In this transition state the node’s callback onCleanup will be called to clear --- > # In this transition state the node's callback onCleanup will be called to clear diff -r msgdefs/ros2humble/lifecycle_msgs/msg/TransitionEvent.msg msgdefs/ros2iron/lifecycle_msgs/msg/TransitionEvent.msg 26c26 < # The node’s onConfigure callback will be called to allow the node to load its --- > # The node's onConfigure callback will be called to allow the node to load its 30c30 < # The node’s callback onCleanup will be called in this transition to allow the --- > # The node's callback onCleanup will be called in this transition to allow the 128c128 < # This is the main state of the node’s life cycle. While in this state, the node --- > # This is the main state of the node's life cycle. While in this state, the node 140c140 < # In this transition state the node’s onConfigure callback will be called to --- > # In this transition state the node's onConfigure callback will be called to 144c144 < # In this transition state the node’s callback onCleanup will be called to clear --- > # In this transition state the node's callback onCleanup will be called to clear 188c188 < # This is the main state of the node’s life cycle. While in this state, the node --- > # This is the main state of the node's life cycle. While in this state, the node 200c200 < # In this transition state the node’s onConfigure callback will be called to --- > # In this transition state the node's onConfigure callback will be called to 204c204 < # In this transition state the node’s callback onCleanup will be called to clear --- > # In this transition state the node's callback onCleanup will be called to clear diff -r msgdefs/ros2humble/lifecycle_msgs/msg/Transition.msg msgdefs/ros2iron/lifecycle_msgs/msg/Transition.msg 12c12 < # The node’s onConfigure callback will be called to allow the node to load its --- > # The node's onConfigure callback will be called to allow the node to load its 16c16 < # The node’s callback onCleanup will be called in this transition to allow the --- > # The node's callback onCleanup will be called in this transition to allow the Only in msgdefs/ros2iron/rcl_interfaces/msg: LoggerLevel.msg Only in msgdefs/ros2iron/rcl_interfaces/msg: SetLoggerLevelsResult.msg diff -r msgdefs/ros2humble/sensor_msgs/msg/BatteryState.msg msgdefs/ros2iron/sensor_msgs/msg/BatteryState.msg 26,32c26,34 < uint8 POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0 < uint8 POWER_SUPPLY_TECHNOLOGY_NIMH = 1 < uint8 POWER_SUPPLY_TECHNOLOGY_LION = 2 < uint8 POWER_SUPPLY_TECHNOLOGY_LIPO = 3 < uint8 POWER_SUPPLY_TECHNOLOGY_LIFE = 4 < uint8 POWER_SUPPLY_TECHNOLOGY_NICD = 5 < uint8 POWER_SUPPLY_TECHNOLOGY_LIMN = 6 --- > uint8 POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0 # Unknown battery technology > uint8 POWER_SUPPLY_TECHNOLOGY_NIMH = 1 # Nickel-Metal Hydride battery > uint8 POWER_SUPPLY_TECHNOLOGY_LION = 2 # Lithium-ion battery > uint8 POWER_SUPPLY_TECHNOLOGY_LIPO = 3 # Lithium Polymer battery > uint8 POWER_SUPPLY_TECHNOLOGY_LIFE = 4 # Lithium Iron Phosphate battery > uint8 POWER_SUPPLY_TECHNOLOGY_NICD = 5 # Nickel-Cadmium battery > uint8 POWER_SUPPLY_TECHNOLOGY_LIMN = 6 # Lithium Manganese Dioxide battery > uint8 POWER_SUPPLY_TECHNOLOGY_TERNARY = 7 # Ternary Lithium battery > uint8 POWER_SUPPLY_TECHNOLOGY_VRLA = 8 # Valve Regulated Lead-Acid battery diff -r msgdefs/ros2humble/sensor_msgs/msg/Range.msg msgdefs/ros2iron/sensor_msgs/msg/Range.msg 40a41,43 > float32 variance # variance of the range sensor > # 0 is interpreted as variance unknown > Only in msgdefs/ros2iron/test_msgs/msg: Arrays.msg Only in msgdefs/ros2iron/test_msgs/msg: BasicTypes.msg Only in msgdefs/ros2iron/test_msgs/msg: BoundedPlainSequences.msg Only in msgdefs/ros2iron/test_msgs/msg: BoundedSequences.msg Only in msgdefs/ros2iron/test_msgs/msg: Constants.msg Only in msgdefs/ros2iron/test_msgs/msg: Defaults.msg Only in msgdefs/ros2iron/test_msgs/msg: Empty.msg Only in msgdefs/ros2iron/test_msgs/msg: MultiNested.msg Only in msgdefs/ros2iron/test_msgs/msg: Nested.msg Only in msgdefs/ros2iron/test_msgs/msg: Strings.msg Only in msgdefs/ros2iron/test_msgs/msg: UnboundedSequences.msg Only in msgdefs/ros2iron/test_msgs/msg: WStrings.msg diff -r msgdefs/ros2humble/tf2_msgs/msg/TF2Error.msg msgdefs/ros2iron/tf2_msgs/msg/TF2Error.msg 10a11 ``` </details>
1 parent e9c6d16 commit c3d941d

File tree

165 files changed

+8106
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+8106
-14
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
- run: yarn run lint:ci
2929

3030
- run: yarn pack
31+
- name: Test commonjs import
32+
run: yarn run test:commonjs
33+
- name: Test esm import
34+
run: yarn run test:esm
35+
- name: Test types
36+
run: yarn run test:types
3137
- name: Publish to NPM (dry run)
3238
# `yarn publish` does not support --provenance
3339
run: npm publish foxglove-rosmsg-msgs-common-*.tgz --provenance --access public --dry-run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Goal ID
2+
unique_identifier_msgs/UUID goal_id
3+
4+
# Time when the goal was accepted
5+
builtin_interfaces/Time stamp
6+
7+
================================================================================
8+
MSG: unique_identifier_msgs/UUID
9+
# A universally unique identifier (UUID).
10+
#
11+
# http://en.wikipedia.org/wiki/Universally_unique_identifier
12+
# http://tools.ietf.org/html/rfc4122.html
13+
14+
uint8[16] uuid
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# An action goal can be in one of these states after it is accepted by an action
2+
# server.
3+
#
4+
# For more information, see http://design.ros2.org/articles/actions.html
5+
6+
# Indicates status has not been properly set.
7+
int8 STATUS_UNKNOWN = 0
8+
9+
# The goal has been accepted and is awaiting execution.
10+
int8 STATUS_ACCEPTED = 1
11+
12+
# The goal is currently being executed by the action server.
13+
int8 STATUS_EXECUTING = 2
14+
15+
# The client has requested that the goal be canceled and the action server has
16+
# accepted the cancel request.
17+
int8 STATUS_CANCELING = 3
18+
19+
# The goal was achieved successfully by the action server.
20+
int8 STATUS_SUCCEEDED = 4
21+
22+
# The goal was canceled after an external request from an action client.
23+
int8 STATUS_CANCELED = 5
24+
25+
# The goal was terminated by the action server without an external request.
26+
int8 STATUS_ABORTED = 6
27+
28+
# Goal info (contains ID and timestamp).
29+
GoalInfo goal_info
30+
31+
# Action goal state-machine status.
32+
int8 status
33+
34+
================================================================================
35+
MSG: action_msgs/GoalInfo
36+
# Goal ID
37+
unique_identifier_msgs/UUID goal_id
38+
39+
# Time when the goal was accepted
40+
builtin_interfaces/Time stamp
41+
42+
================================================================================
43+
MSG: unique_identifier_msgs/UUID
44+
# A universally unique identifier (UUID).
45+
#
46+
# http://en.wikipedia.org/wiki/Universally_unique_identifier
47+
# http://tools.ietf.org/html/rfc4122.html
48+
49+
uint8[16] uuid
50+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# An array of goal statuses.
2+
GoalStatus[] status_list
3+
4+
================================================================================
5+
MSG: action_msgs/GoalStatus
6+
# An action goal can be in one of these states after it is accepted by an action
7+
# server.
8+
#
9+
# For more information, see http://design.ros2.org/articles/actions.html
10+
11+
# Indicates status has not been properly set.
12+
int8 STATUS_UNKNOWN = 0
13+
14+
# The goal has been accepted and is awaiting execution.
15+
int8 STATUS_ACCEPTED = 1
16+
17+
# The goal is currently being executed by the action server.
18+
int8 STATUS_EXECUTING = 2
19+
20+
# The client has requested that the goal be canceled and the action server has
21+
# accepted the cancel request.
22+
int8 STATUS_CANCELING = 3
23+
24+
# The goal was achieved successfully by the action server.
25+
int8 STATUS_SUCCEEDED = 4
26+
27+
# The goal was canceled after an external request from an action client.
28+
int8 STATUS_CANCELED = 5
29+
30+
# The goal was terminated by the action server without an external request.
31+
int8 STATUS_ABORTED = 6
32+
33+
# Goal info (contains ID and timestamp).
34+
GoalInfo goal_info
35+
36+
# Action goal state-machine status.
37+
int8 status
38+
39+
================================================================================
40+
MSG: action_msgs/GoalInfo
41+
# Goal ID
42+
unique_identifier_msgs/UUID goal_id
43+
44+
# Time when the goal was accepted
45+
builtin_interfaces/Time stamp
46+
47+
================================================================================
48+
MSG: unique_identifier_msgs/UUID
49+
# A universally unique identifier (UUID).
50+
#
51+
# http://en.wikipedia.org/wiki/Universally_unique_identifier
52+
# http://tools.ietf.org/html/rfc4122.html
53+
54+
uint8[16] uuid
55+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# The stamp should store the time at which this goal was requested.
3+
# It is used by an action server when it tries to preempt all
4+
# goals that were requested before a certain time
5+
builtin_interfaces/Time stamp
6+
7+
# The id provides a way to associate feedback and
8+
# result message with specific goal requests. The id
9+
# specified must be unique.
10+
string id
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
GoalID goal_id
2+
uint8 status
3+
uint8 PENDING = 0 # The goal has yet to be processed by the action server.
4+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server.
5+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
6+
# and has since completed its execution (Terminal State).
7+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server
8+
# (Terminal State).
9+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
10+
# to some failure (Terminal State).
11+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
12+
# because the goal was unattainable or invalid (Terminal State).
13+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
14+
# and has not yet completed execution.
15+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing, but
16+
# the action server has not yet confirmed that the goal is canceled.
17+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
18+
# and was successfully cancelled (Terminal State).
19+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not
20+
# be sent over the wire by an action server.
21+
22+
# Allow for the user to associate a string with GoalStatus for debugging.
23+
string text
24+
25+
================================================================================
26+
MSG: actionlib_msgs/GoalID
27+
28+
# The stamp should store the time at which this goal was requested.
29+
# It is used by an action server when it tries to preempt all
30+
# goals that were requested before a certain time
31+
builtin_interfaces/Time stamp
32+
33+
# The id provides a way to associate feedback and
34+
# result message with specific goal requests. The id
35+
# specified must be unique.
36+
string id
37+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Stores the statuses for goals that are currently being tracked
2+
# by an action server
3+
std_msgs/Header header
4+
GoalStatus[] status_list
5+
6+
================================================================================
7+
MSG: std_msgs/Header
8+
# Standard metadata for higher-level stamped data types.
9+
# This is generally used to communicate timestamped data
10+
# in a particular coordinate frame.
11+
12+
# Two-integer timestamp that is expressed as seconds and nanoseconds.
13+
builtin_interfaces/Time stamp
14+
15+
# Transform frame with which this data is associated.
16+
string frame_id
17+
18+
================================================================================
19+
MSG: actionlib_msgs/GoalStatus
20+
GoalID goal_id
21+
uint8 status
22+
uint8 PENDING = 0 # The goal has yet to be processed by the action server.
23+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server.
24+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
25+
# and has since completed its execution (Terminal State).
26+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server
27+
# (Terminal State).
28+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
29+
# to some failure (Terminal State).
30+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
31+
# because the goal was unattainable or invalid (Terminal State).
32+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
33+
# and has not yet completed execution.
34+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing, but
35+
# the action server has not yet confirmed that the goal is canceled.
36+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
37+
# and was successfully cancelled (Terminal State).
38+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not
39+
# be sent over the wire by an action server.
40+
41+
# Allow for the user to associate a string with GoalStatus for debugging.
42+
string text
43+
44+
================================================================================
45+
MSG: actionlib_msgs/GoalID
46+
47+
# The stamp should store the time at which this goal was requested.
48+
# It is used by an action server when it tries to preempt all
49+
# goals that were requested before a certain time
50+
builtin_interfaces/Time stamp
51+
52+
# The id provides a way to associate feedback and
53+
# result message with specific goal requests. The id
54+
# specified must be unique.
55+
string id
56+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Duration defines a period between two time points.
2+
# Messages of this datatype are of ROS Time following this design:
3+
# https://design.ros2.org/articles/clock_and_time.html
4+
5+
# Seconds component, range is valid over any possible int32 value.
6+
int32 sec
7+
8+
# Nanoseconds component in the range of [0, 1e9).
9+
uint32 nanosec
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This message communicates ROS Time defined here:
2+
# https://design.ros2.org/articles/clock_and_time.html
3+
4+
# The seconds component, valid over all int32 values.
5+
int32 sec
6+
7+
# The nanoseconds component, valid in the range [0, 1e9).
8+
uint32 nanosec
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This message is used to send diagnostic information about the state of the robot.
2+
std_msgs/Header header # for timestamp
3+
DiagnosticStatus[] status # an array of components being reported on
4+
5+
================================================================================
6+
MSG: std_msgs/Header
7+
# Standard metadata for higher-level stamped data types.
8+
# This is generally used to communicate timestamped data
9+
# in a particular coordinate frame.
10+
11+
# Two-integer timestamp that is expressed as seconds and nanoseconds.
12+
builtin_interfaces/Time stamp
13+
14+
# Transform frame with which this data is associated.
15+
string frame_id
16+
17+
================================================================================
18+
MSG: diagnostic_msgs/DiagnosticStatus
19+
# This message holds the status of an individual component of the robot.
20+
21+
# Possible levels of operations.
22+
byte OK=0
23+
byte WARN=1
24+
byte ERROR=2
25+
byte STALE=3
26+
27+
# Level of operation enumerated above.
28+
byte level
29+
# A description of the test/component reporting.
30+
string name
31+
# A description of the status.
32+
string message
33+
# A hardware unique string.
34+
string hardware_id
35+
# An array of values associated with the status.
36+
KeyValue[] values
37+
38+
39+
================================================================================
40+
MSG: diagnostic_msgs/KeyValue
41+
# What to label this value when viewing.
42+
string key
43+
# A value to track over time.
44+
string value
45+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This message holds the status of an individual component of the robot.
2+
3+
# Possible levels of operations.
4+
byte OK=0
5+
byte WARN=1
6+
byte ERROR=2
7+
byte STALE=3
8+
9+
# Level of operation enumerated above.
10+
byte level
11+
# A description of the test/component reporting.
12+
string name
13+
# A description of the status.
14+
string message
15+
# A hardware unique string.
16+
string hardware_id
17+
# An array of values associated with the status.
18+
KeyValue[] values
19+
20+
21+
================================================================================
22+
MSG: diagnostic_msgs/KeyValue
23+
# What to label this value when viewing.
24+
string key
25+
# A value to track over time.
26+
string value
27+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# What to label this value when viewing.
2+
string key
3+
# A value to track over time.
4+
string value
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This expresses acceleration in free space broken into its linear and angular parts.
2+
Vector3 linear
3+
Vector3 angular
4+
5+
================================================================================
6+
MSG: geometry_msgs/Vector3
7+
# This represents a vector in free space.
8+
9+
# This is semantically different than a point.
10+
# A vector is always anchored at the origin.
11+
# When a transform is applied to a vector, only the rotational component is applied.
12+
13+
float64 x
14+
float64 y
15+
float64 z
16+
17+
================================================================================
18+
MSG: geometry_msgs/Vector3
19+
# This represents a vector in free space.
20+
21+
# This is semantically different than a point.
22+
# A vector is always anchored at the origin.
23+
# When a transform is applied to a vector, only the rotational component is applied.
24+
25+
float64 x
26+
float64 y
27+
float64 z
28+

0 commit comments

Comments
 (0)