AcutronicRobotics / HRIM

An information model for robot hardware. Facilitates interoperability across modules from different robot manufacturers. Built around ROS 2.0
https://acutronicrobotics.com/technology/hrim/
Apache License 2.0
66 stars 22 forks source link

Adding hrim_sensor_hygrometer_msgs #10

Closed ibaiape closed 5 years ago

ibaiape commented 6 years ago

RelativeHumidity.msg file is taken directly from the default ROS2 sensor_msgs.

The operative relative humidity range has default values seeing many researched sensors don't specify it, might be unnecessary.

The accuracy values are set as an average as many researched sensors specify a single value for when inside and outside "ideal" rh and temp ranges but others have multiple (as in +-1% between 10-20ºC, +-2% between 20-30ºC and +-3% over 30ºC).

Values referencing ranges of relative humidity (in specs) possibly don't need to be floating point values, most datasheets show integer values.

A single (handheld) sensor was found while researching that permitted adjusting the measurement time, could be implemented by adding the amount of time to the RelativeHumidity.msg and a way to change that value. Maybe taking the measurements on-demand (receiving that value) instead of continuously? The measurement times tend to be long enough for this (commonly taking multiple seconds to complete).