NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ff_util::FlightUtil Class Reference

#include <ff_flight.h>

Public Types

typedef std::map< std::string, ff_msgs::FlightMode > FlightModeMap
 

Static Public Member Functions

static bool GetInertiaConfig (geometry_msgs::InertiaStamped &data)
 
static bool GetFlightMode (ff_msgs::FlightMode &data, std::string const &name="")
 
static bool GetInitialFlightMode (ff_msgs::FlightMode &data)
 
static double ValidateUpperLimit (const double limit, double val)
 
static double ValidateLowerLimit (const double limit, double val)
 
static SegmentResult Check (SegmentCheckMask mask, Segment const &segment, ff_msgs::FlightMode const &flight_mode, bool faceforward)
 
static SegmentResult Resample (Segment const &in, Segment &out, double rate=-1.0)
 
static std::string GetDescription (SegmentResult result)
 
static bool Equal (Setpoint const &left, Setpoint const &right, size_t degree=2)
 
static bool WithinTolerance (geometry_msgs::Pose const &a, geometry_msgs::Pose const &b, double tolerance_pos, double tolerance_att)
 
static bool WithinTolerance (ff_msgs::FlightMode const &fm, geometry_msgs::Pose const &a, geometry_msgs::Pose const &b)
 

Static Public Attributes

static constexpr double MIN_CONTROL_RATE = 1.0
 

Member Typedef Documentation

◆ FlightModeMap

typedef std::map<std::string, ff_msgs::FlightMode> ff_util::FlightUtil::FlightModeMap

Member Function Documentation

◆ Check()

SegmentResult ff_util::FlightUtil::Check ( SegmentCheckMask  mask,
Segment const &  segment,
ff_msgs::FlightMode const &  flight_mode,
bool  faceforward 
)
static

◆ Equal()

bool ff_util::FlightUtil::Equal ( Setpoint const &  left,
Setpoint const &  right,
size_t  degree = 2 
)
static

◆ GetDescription()

std::string ff_util::FlightUtil::GetDescription ( SegmentResult  result)
static

◆ GetFlightMode()

bool ff_util::FlightUtil::GetFlightMode ( ff_msgs::FlightMode &  data,
std::string const &  name = "" 
)
static

◆ GetInertiaConfig()

bool ff_util::FlightUtil::GetInertiaConfig ( geometry_msgs::InertiaStamped &  data)
static

◆ GetInitialFlightMode()

bool ff_util::FlightUtil::GetInitialFlightMode ( ff_msgs::FlightMode &  data)
static

◆ Resample()

SegmentResult ff_util::FlightUtil::Resample ( Segment const &  in,
Segment out,
double  rate = -1.0 
)
static

◆ ValidateLowerLimit()

double ff_util::FlightUtil::ValidateLowerLimit ( const double  limit,
double  val 
)
static

◆ ValidateUpperLimit()

double ff_util::FlightUtil::ValidateUpperLimit ( const double  limit,
double  val 
)
static

◆ WithinTolerance() [1/2]

bool ff_util::FlightUtil::WithinTolerance ( ff_msgs::FlightMode const &  fm,
geometry_msgs::Pose const &  a,
geometry_msgs::Pose const &  b 
)
static

◆ WithinTolerance() [2/2]

bool ff_util::FlightUtil::WithinTolerance ( geometry_msgs::Pose const &  a,
geometry_msgs::Pose const &  b,
double  tolerance_pos,
double  tolerance_att 
)
static

Member Data Documentation

◆ MIN_CONTROL_RATE

constexpr double ff_util::FlightUtil::MIN_CONTROL_RATE = 1.0
staticconstexpr

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