NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
localization_manager::Pipeline Struct Reference

#include <localization_pipeline.h>

Public Types

enum  Components : uint8_t {
  COMPONENT_FILTER = (1<<0), COMPONENT_OPTICAL_FLOW = (1<<1), COMPONENT_ENABLE = (1<<2), COMPONENT_SET_INPUT = (1<<3),
  COMPONENT_REGISTRATIONS = (1<<4), COMPONENT_VISUAL_FEATURES = (1<<5), COMPONENT_DEPTH_FEATURES = (1<<6)
}
 

Public Member Functions

 Pipeline (uint8_t mode, std::string const &name)
 
PipelineNeedsFilter (uint32_t max_conf, bool optical_flow, double timeout)
 
PipelineNeedsEnable (std::string const &topic, double timeout)
 
PipelineNeedsRegistrations (std::string const &topic, double timeout)
 
PipelineNeedsVisualFeatures (std::string const &topic, double timeout, uint32_t min_features)
 
PipelineNeedsDepthFeatures (std::string const &topic, double timeout, uint32_t min_features)
 
std::string const & GetTopic ()
 
std::string const & GetName ()
 
uint8_t GetMode ()
 
bool RequiresOpticalFlow ()
 
bool RequiresFilter ()
 
bool Initialize (ros::NodeHandle *nh, PipelineCallbackType cb_error, std::function< void(void)> cb_connected, std::function< void(void)> cb_timeout)
 
bool IsConnected ()
 
bool Toggle (bool enable)
 
bool Use (bool enable)
 

Protected Member Functions

void RegistrationCallback (ff_msgs::CameraRegistration::ConstPtr const &msg)
 
void RegistrationTimeoutCallback (ros::TimerEvent const &event)
 
void VisualCallback (ff_msgs::VisualLandmarks::ConstPtr const &msg)
 
void VisualTimeoutCallback (ros::TimerEvent const &event)
 
void DepthCallback (ff_msgs::DepthLandmarks::ConstPtr const &msg)
 
void DepthTimeoutCallback (ros::TimerEvent const &event)
 
void FilterCallback (ff_msgs::EkfState::ConstPtr const &msg)
 
void FilterTimeoutCallback (ros::TimerEvent const &event)
 

Member Enumeration Documentation

◆ Components

Enumerator
COMPONENT_FILTER 
COMPONENT_OPTICAL_FLOW 
COMPONENT_ENABLE 
COMPONENT_SET_INPUT 
COMPONENT_REGISTRATIONS 
COMPONENT_VISUAL_FEATURES 
COMPONENT_DEPTH_FEATURES 

Constructor & Destructor Documentation

◆ Pipeline()

localization_manager::Pipeline::Pipeline ( uint8_t  mode,
std::string const &  name 
)
inline

Member Function Documentation

◆ DepthCallback()

void localization_manager::Pipeline::DepthCallback ( ff_msgs::DepthLandmarks::ConstPtr const &  msg)
inlineprotected

◆ DepthTimeoutCallback()

void localization_manager::Pipeline::DepthTimeoutCallback ( ros::TimerEvent const &  event)
inlineprotected

◆ FilterCallback()

void localization_manager::Pipeline::FilterCallback ( ff_msgs::EkfState::ConstPtr const &  msg)
inlineprotected

◆ FilterTimeoutCallback()

void localization_manager::Pipeline::FilterTimeoutCallback ( ros::TimerEvent const &  event)
inlineprotected

◆ GetMode()

uint8_t localization_manager::Pipeline::GetMode ( )
inline

◆ GetName()

std::string const& localization_manager::Pipeline::GetName ( )
inline

◆ GetTopic()

std::string const& localization_manager::Pipeline::GetTopic ( )
inline

◆ Initialize()

bool localization_manager::Pipeline::Initialize ( ros::NodeHandle *  nh,
PipelineCallbackType  cb_error,
std::function< void(void)>  cb_connected,
std::function< void(void)>  cb_timeout 
)
inline

◆ IsConnected()

bool localization_manager::Pipeline::IsConnected ( )
inline

◆ NeedsDepthFeatures()

Pipeline& localization_manager::Pipeline::NeedsDepthFeatures ( std::string const &  topic,
double  timeout,
uint32_t  min_features 
)
inline

◆ NeedsEnable()

Pipeline& localization_manager::Pipeline::NeedsEnable ( std::string const &  topic,
double  timeout 
)
inline

◆ NeedsFilter()

Pipeline& localization_manager::Pipeline::NeedsFilter ( uint32_t  max_conf,
bool  optical_flow,
double  timeout 
)
inline

◆ NeedsRegistrations()

Pipeline& localization_manager::Pipeline::NeedsRegistrations ( std::string const &  topic,
double  timeout 
)
inline

◆ NeedsVisualFeatures()

Pipeline& localization_manager::Pipeline::NeedsVisualFeatures ( std::string const &  topic,
double  timeout,
uint32_t  min_features 
)
inline

◆ RegistrationCallback()

void localization_manager::Pipeline::RegistrationCallback ( ff_msgs::CameraRegistration::ConstPtr const &  msg)
inlineprotected

◆ RegistrationTimeoutCallback()

void localization_manager::Pipeline::RegistrationTimeoutCallback ( ros::TimerEvent const &  event)
inlineprotected

◆ RequiresFilter()

bool localization_manager::Pipeline::RequiresFilter ( )
inline

◆ RequiresOpticalFlow()

bool localization_manager::Pipeline::RequiresOpticalFlow ( )
inline

◆ Toggle()

bool localization_manager::Pipeline::Toggle ( bool  enable)
inline

◆ Use()

bool localization_manager::Pipeline::Use ( bool  enable)
inline

◆ VisualCallback()

void localization_manager::Pipeline::VisualCallback ( ff_msgs::VisualLandmarks::ConstPtr const &  msg)
inlineprotected

◆ VisualTimeoutCallback()

void localization_manager::Pipeline::VisualTimeoutCallback ( ros::TimerEvent const &  event)
inlineprotected

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