ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
float("inf")
and float("-inf")
for python.
std::numeric_limits<sensor_msgs::Range::_range_type>::infinity()
for C++. std::numeric_limits<float>::infinity()
will also work, but assumes that range will not change to float64 in the future.
On Arduino you can use INFINITY
.