Class SafetyController

Inheritance Relationships

Base Type

  • public rclcpp::Node

Class Documentation

class SafetyController : public rclcpp::Node

@ brief Keeps track of safety-related events and commands Kobuki to move accordingly

The SafetyController keeps track of bumper, cliff and wheel drop events. In case of the first two, Kobuki is commanded to move back. In the latter case, Kobuki is stopped. All commands stop when the event condition disappears. In the case of lateral bump/cliff, robot also spins a bit, what makes easier to escape from the risk.

This controller can be enabled/disabled. The safety states (bumper pressed etc.) can be reset. WARNING: Dangerous!

Public Functions

explicit SafetyController(const rclcpp::NodeOptions &options)
~SafetyController() override
SafetyController(SafetyController &&c) = delete
SafetyController &operator=(SafetyController &&c) = delete
SafetyController(const SafetyController &c) = delete
SafetyController &operator=(const SafetyController &c) = delete