sailboat_sensors.anemometer.anemometer_node module
- class sailboat_sensors.anemometer.anemometer_node.Anemometer
Bases:
NodeThis class is a ROS2 node that publishes wind data from the anemometer sensor. It uses the SailAnemometer class for sensor communications.
- destroy_node()
Override the destroy_node method to close the serial connection before shutting down.
- timer_callback()
Callback function for the timer. It reads the wind data from the sensor and publishes it to the ‘/wind’ topic.
- sailboat_sensors.anemometer.anemometer_node.main(args=None)