SMACC2
|
#include <cp_forward_obstacle_detector.hpp>
Public Member Functions | |
void | onInitialize () override |
int | modulo_Euclidean (int a, int b) |
float | getForwardDistance (int raysWidthCount=0) |
void | MessageCallbackStoreDistanceToWall (const sensor_msgs::msg::LaserScan &scanmsg) |
Public Member Functions inherited from smacc2::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Public Attributes | |
sensor_msgs::msg::LaserScan | lastScanMessage_ |
const float | SECURITY_DISTANCE = 0.4 |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
virtual void | onInitialize () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TComponent > | |
void | requiresComponent (TComponent *&requiredComponentStorage) |
template<typename TClient > | |
void | requiresClient (TClient *&requiredClientStorage) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Definition at line 30 of file cp_forward_obstacle_detector.hpp.
|
inline |
Definition at line 56 of file cp_forward_obstacle_detector.hpp.
References smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getName(), smacc2::ISmaccComponent::getNode(), lastScanMessage_, and SECURITY_DISTANCE.
|
inline |
Definition at line 111 of file cp_forward_obstacle_detector.hpp.
Referenced by onInitialize().
|
inline |
Definition at line 45 of file cp_forward_obstacle_detector.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 37 of file cp_forward_obstacle_detector.hpp.
References MessageCallbackStoreDistanceToWall(), smacc2::client_bases::SmaccSubscriberClient< MessageType >::onMessageReceived(), and smacc2::ISmaccComponent::owner_.
sensor_msgs::msg::LaserScan sm_dance_bot_warehouse_3::cl_lidar::CpForwardObstacleDetector::lastScanMessage_ |
Definition at line 33 of file cp_forward_obstacle_detector.hpp.
Referenced by getForwardDistance().
const float sm_dance_bot_warehouse_3::cl_lidar::CpForwardObstacleDetector::SECURITY_DISTANCE = 0.4 |
Definition at line 35 of file cp_forward_obstacle_detector.hpp.
Referenced by getForwardDistance().