ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Two other options are:
First, if you are using float/double, you can use NaN to indicate absence of value.
Second, define new custom message called float32opt.msg like this:
float32 my_val
bool valid
Then use that type in your messages:
float32opt thrust
float32opt yaw