SMACC2
|
#include <component.hpp>
Public Member Functions | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Protected Member Functions | |
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, bool throwExceptionIfNotExist=false) |
template<typename TComponent > | |
void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false) |
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 () const |
ISmaccStateMachine * | getStateMachine () |
Protected Attributes | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Private Member Functions | |
void | initialize (ISmaccClient *owner) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
Friends | |
class | ISmaccOrthogonal |
class | ISmaccClient |
Definition at line 29 of file component.hpp.
smacc2::ISmaccComponent::ISmaccComponent | ( | ) |
Definition at line 27 of file smacc_component.cpp.
|
virtual |
Definition at line 25 of file smacc_component.cpp.
|
protected |
Definition at line 103 of file smacc_component_impl.hpp.
References smacc2::ISmaccClient::createComponent(), and owner_.
|
protected |
Definition at line 109 of file smacc_component_impl.hpp.
References smacc2::ISmaccClient::createNamedComponent(), and owner_.
|
protected |
Definition at line 44 of file smacc_component.cpp.
References smacc2::ISmaccClient::getLogger(), and owner_.
Referenced by cl_move_group_interface::CpGraspingComponent::createGraspableBox(), cl_nav2z::CostmapSwitch::disable(), cl_nav2z::CostmapSwitch::enable(), cl_move_group_interface::CpTrajectoryHistory::getLastTrajectory(), cl_nav2z::WaypointNavigator::loadWayPointsFromFile(), cl_nav2z::WaypointNavigator::loadWayPointsFromFile2(), cl_nav2z::odom_tracker::OdomTracker::logStateString(), cl_nav2z::WaypointNavigator::onGoalReached(), smacc2::components::CpTopicSubscriber< MessageType >::onInitialize(), cl_nav2z::CostmapSwitch::onInitialize(), cl_nav2z::odom_tracker::OdomTracker::onInitialize(), cl_nav2z::Pose::onInitialize(), cl_nav2z::odom_tracker::OdomTracker::popPath(), cl_nav2z::odom_tracker::OdomTracker::processOdometryMessage(), cl_nav2z::odom_tracker::OdomTracker::pushPath(), cl_move_group_interface::CpTrajectoryHistory::pushTrajectory(), cl_nav2z::CostmapSwitch::registerProxyFromDynamicReconfigureServer(), requiresComponent(), cl_nav2z::WaypointNavigator::seekName(), cl_nav2z::WaypointNavigator::sendNextGoal(), cl_nav2z::PlannerSwitcher::setBackwardPlanner(), cl_nav2z::PlannerSwitcher::setForwardPlanner(), cl_nav2z::GoalCheckerSwitcher::setGoalCheckerId(), cl_nav2z::PlannerSwitcher::setPureSpinningPlanner(), cl_nav2z::odom_tracker::OdomTracker::setStartPoint(), cl_nav2z::PlannerSwitcher::setUndoPathBackwardPlanner(), cl_nav2z::odom_tracker::OdomTracker::setWorkingMode(), cl_nav2z::Pose::update(), cl_nav2z::odom_tracker::OdomTracker::updateClearPath(), cl_nav2z::odom_tracker::OdomTracker::updateRecordPath(), and cl_nav2z::Pose::waitTransformUpdate().
|
virtual |
Reimplemented in cl_nav2z::Amcl.
Definition at line 46 of file smacc_component.cpp.
References smacc2::introspection::demangleSymbol().
Referenced by cl_move_group_interface::CpGraspingComponent::createGraspableBox(), cl_move_group_interface::CpTrajectoryHistory::getLastTrajectory(), smacc2::components::CpTopicSubscriber< MessageType >::onInitialize(), cl_move_group_interface::CpTrajectoryHistory::pushTrajectory(), and cl_nav2z::WaypointNavigator::sendNextGoal().
|
protected |
Definition at line 42 of file smacc_component.cpp.
References smacc2::ISmaccClient::getNode(), and owner_.
Referenced by cl_nav2z::odom_tracker::OdomTracker::clearPath(), cl_nav2z::CpWaypointsVisualizer::createMarker(), cl_nav2z::CpWaypointsVisualizer::createMarkerLabel(), smacc2::components::CpTopicSubscriber< MessageType >::onInitialize(), cl_nav2z::Amcl::onInitialize(), cl_nav2z::GoalCheckerSwitcher::onInitialize(), cl_nav2z::odom_tracker::OdomTracker::onInitialize(), cl_nav2z::PlannerSwitcher::onInitialize(), cl_nav2z::Pose::onInitialize(), cl_nav2z::CpWaypointsVisualizer::onInitialize(), cl_nav2z::odom_tracker::OdomTracker::processOdometryMessage(), cl_nav2z::CostmapSwitch::registerProxyFromDynamicReconfigureServer(), cl_nav2z::odom_tracker::OdomTracker::setStartPoint(), cl_nav2z::Pose::update(), cl_nav2z::CpWaypointsVisualizer::update(), cl_nav2z::odom_tracker::OdomTracker::updateConfiguration(), cl_nav2z::odom_tracker::OdomTracker::updateRecordPath(), and cl_nav2z::Pose::waitTransformUpdate().
|
protected |
Definition at line 52 of file smacc_component.cpp.
References stateMachine_.
Referenced by smacc2::components::CpTopicSubscriber< MessageType >::onFirstMessageReceived(), smacc2::components::CpTopicSubscriber< MessageType >::onMessageReceived(), and cl_nav2z::WaypointNavigator::sendNextGoal().
|
private |
Definition at line 29 of file smacc_component.cpp.
References onInitialize(), and owner_.
|
protectedvirtual |
Reimplemented in smacc2::components::CpTopicPublisher< MessageType >, smacc2::components::CpTopicSubscriber< MessageType >, cl_nav2z::Amcl, cl_nav2z::CostmapSwitch, cl_nav2z::GoalCheckerSwitcher, cl_nav2z::odom_tracker::OdomTracker, cl_nav2z::PlannerSwitcher, cl_nav2z::Pose, cl_nav2z::WaypointNavigator, and cl_nav2z::CpWaypointsVisualizer.
Definition at line 35 of file smacc_component.cpp.
Referenced by initialize().
|
inlineprotected |
Definition at line 51 of file component.hpp.
|
protected |
Definition at line 37 of file smacc_component_impl.hpp.
References smacc2::ISmaccStateMachine::postEvent(), and stateMachine_.
Referenced by smacc2::components::CpTopicSubscriber< MessageType >::onOrthogonalAllocation().
|
protected |
Definition at line 31 of file smacc_component_impl.hpp.
References smacc2::ISmaccStateMachine::postEvent(), and stateMachine_.
|
protected |
Definition at line 97 of file smacc_component_impl.hpp.
References owner_, and smacc2::ISmaccClient::requiresClient().
|
protected |
Definition at line 70 of file smacc_component_impl.hpp.
References smacc2::introspection::demangleSymbol(), smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClient::getComponents(), getLogger(), and owner_.
|
protected |
Definition at line 44 of file smacc_component_impl.hpp.
References smacc2::introspection::demangleSymbol(), smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClient::getComponents(), getLogger(), and owner_.
Referenced by cl_nav2z::CpWaypointsVisualizer::onInitialize().
|
private |
Definition at line 37 of file smacc_component.cpp.
References stateMachine_.
|
friend |
Definition at line 94 of file component.hpp.
|
friend |
Definition at line 93 of file component.hpp.
|
protected |
Definition at line 83 of file component.hpp.
Referenced by createSiblingComponent(), createSiblingNamedComponent(), getLogger(), getNode(), initialize(), cl_nav2z::CostmapSwitch::onInitialize(), cl_nav2z::WaypointNavigator::onInitialize(), requiresClient(), requiresComponent(), and cl_nav2z::WaypointNavigator::sendNextGoal().
|
protected |
Definition at line 81 of file component.hpp.
Referenced by getStateMachine(), postEvent(), and setStateMachine().