ros2 / rosidl_typesupport

Packages which provide the typesupport for ROS messages and services
Apache License 2.0
13 stars 34 forks source link

Recursive definition of interfaces #128

Open fmrico opened 1 year ago

fmrico commented 1 year ago

Feature request

Recursive definition of interfaces

Feature description

It would be very useful to define a message that includes the type of message being defined. Example:

Expression.msg at upf_msgs package

upf_msgs/Atom atom
upf_msgs/Expression[] expressions

string type
upf_msgs/ExpressionKind kind

Currently, this gives an error when compiling

clalancette commented 1 year ago

It would be nice, though it is fairly easy to work around by making Expression.msg, and then having a higher-level message which includes it.

Thus, while I'll leave this open for a future enhancement, I don't expect that we'll get to it anytime soon.