Skip to main content
2 votes

Is there a way to enumerate over predefined constants in ROS2 message definitions?

Unfortunately I don't think it is possible to do this automatically given the way the IDL is defined. You'll notice in the marker message there are actually two sets of constants (one for markers, one ...
Andre Nguyen's user avatar
2 votes
Accepted

Publish an Array of Values as Wrench Message in ROS2 and Python

I don't think it is possible: the types of the fields in a message are hard-coded in its .msg definition and the C++ interfaces are generated once at message compilation. Would still require a custom ...
PatoInso's user avatar
  • 124
2 votes
Accepted

KeyError:'unique_identifier_msgs' and KeyError:'service_msgs' when compiling interface package

Soooo, apparantly the reason for the errors was simply because I had an action in the folder actions, and it appears that ROS2 does not like that. They want ...
highjeans 's user avatar
1 vote
Accepted

LaserScan scan_time for multiple scans in a single rotation

I interpret the comment in LaserScan.msg to mean it is the interval, in float seconds, from the start-of-LaserScan-msg-N to start-of-LaserScan-msg-(N+1). That said, ...
Mike973's user avatar
  • 976
1 vote
Accepted

How to add a header with timestamp to numpy_msg?

Is it possible to add a header with a timestamp to a numpy_msg In short, yes, I think you just need to call numpy_msg() on a ...
danzimmerman's user avatar
1 vote

if the required message is a standard message type available with ROS, do we still need to define it in msg/xxxx.msg?

You can skip it. All standard message types are already run through gencpp/genpy/gennodejs/etc. during build time of the ROS distribution packages to generate the c++, python, and node.js message ...
Christian Fritz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible