LocalGuidance
A library that generates velocity references to follow a path.
local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface Class Referenceabstract

#include <LocoCtrlInfoInterface.hpp>

Inheritance diagram for local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface:
Inheritance graph

Public Types

using LocomotionController = navigation_common::LocomotionControllerLocalGuidance
 
using LocoCtrlInfoInterfacePtr = std::unique_ptr< LocoCtrlInfoInterface >
 

Public Member Functions

 LocoCtrlInfoInterface (ros::NodeHandle &nodeHandle, const LocomotionController &locomotionController)
 
virtual ~LocoCtrlInfoInterface ()=default
 
void getLocomotionController (LocomotionController *locomotionController) const
 
LocomotionController getLocomotionController () const
 
std::string getLocomotionControllerName () const
 
virtual bool stop ()=0
 
bool activateModeIfPresent ()
 
virtual bool activateMode ()=0
 
virtual bool hasMode () const =0
 
bool activateSubModeIfPresent ()
 
virtual bool activateSubMode ()=0
 
virtual bool hasSubMode () const =0
 
virtual bool requiresToTakeOverTwist () const =0
 

Protected Attributes

ros::NodeHandle & nodeHandle_
 Ros node handle. More...
 
const LocomotionController locomotionController_
 Locomotion controller info. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::LocoCtrlInfoInterface ( ros::NodeHandle &  nodeHandle,
const LocomotionController locomotionController 
)
explicit

Constructor.

virtual local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::~LocoCtrlInfoInterface ( )
virtualdefault

Destructor.

Member Function Documentation

virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::activateMode ( )
pure virtual
bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::activateModeIfPresent ( )

Activates the mode of the locomotion controller, if one is present. Prefer to use this function as it combines together hasMode() and activateMode().

Returns
true in case of success (even if there is no mode to activate).
virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::activateSubMode ( )
pure virtual
bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::activateSubModeIfPresent ( )

Activates the sub-mode of the locomotion controller, if one is present. Prefer to use this function as it combines together hasSubMode() and activateSubMode().

Returns
true in case of success (even if there is no sub-mode to activate).
void local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::getLocomotionController ( LocomotionController locomotionController) const

Returns the current structure holding info about the locomotion controller.

Parameters
[out]locomotionControllerinfo about the locomotion controller.
LocomotionController local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::getLocomotionController ( ) const

Returns the current structure holding info about the locomotion controller.

Returns
info about the locomotion controller.
std::string local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::getLocomotionControllerName ( ) const

Returns the name of the locomotion controller.

Returns
name of the locomotion controller.
virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::hasMode ( ) const
pure virtual
virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::hasSubMode ( ) const
pure virtual
virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::requiresToTakeOverTwist ( ) const
pure virtual
virtual bool local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::stop ( )
pure virtual

Member Data Documentation

const LocomotionController local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::locomotionController_
protected

Locomotion controller info.

ros::NodeHandle& local_guidance_loco_ctrl_manager::LocoCtrlInfoInterface::nodeHandle_
protected

Ros node handle.


The documentation for this class was generated from the following file: