Public Member Functions | Private Member Functions | Private Attributes | List of all members
fastrack::environment::BallsInBox Class Reference

#include <balls_in_box.h>

Inheritance diagram for fastrack::environment::BallsInBox:
Inheritance graph
[legend]

Public Member Functions

 BallsInBox ()
 
bool IsValid (const Vector3d &position, const TrackingBound &bound, double time=std::numeric_limits< double >::quiet_NaN()) const
 
fastrack_msgs::SensedSpheres SimulateSensor (const SphereSensorParams &params) const
 
void Visualize () const
 
 ~BallsInBox ()
 
- Public Member Functions inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >
bool AreValid (const std::vector< Vector3d > &positions, const TrackingBound &bound, double time=std::numeric_limits< double >::quiet_NaN()) const
 
bool Initialize (const ros::NodeHandle &n)
 
virtual ~Environment ()
 

Private Member Functions

void GenerateObstacles (size_t num, double min_radius, double max_radius, unsigned int seed=0)
 
bool LoadParameters (const ros::NodeHandle &n)
 
void SensorCallback (const fastrack_msgs::SensedSpheres::ConstPtr &msg)
 

Private Attributes

std::vector< Vector3d > centers_
 
std::vector< double > radii_
 

Additional Inherited Members

- Protected Member Functions inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >
 Environment ()
 
virtual bool RegisterCallbacks (const ros::NodeHandle &n)
 
virtual void SensorCallback (const typename fastrack_msgs::SensedSpheres::ConstPtr &msg)=0
 
- Protected Attributes inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >
std::string fixed_frame_
 
bool initialized_
 
Vector3d lower_
 
std::string name_
 
ros::Subscriber sensor_sub_
 
std::string sensor_topic_
 
ros::Publisher updated_pub_
 
std::string updated_topic_
 
Vector3d upper_
 
ros::Publisher vis_pub_
 
std::string vis_topic_
 

Detailed Description

Definition at line 62 of file balls_in_box.h.

Constructor & Destructor Documentation

fastrack::environment::BallsInBox::~BallsInBox ( )
inline

Definition at line 65 of file balls_in_box.h.

fastrack::environment::BallsInBox::BallsInBox ( )
inlineexplicit

Definition at line 66 of file balls_in_box.h.

Member Function Documentation

void fastrack::environment::BallsInBox::GenerateObstacles ( size_t  num,
double  min_radius,
double  max_radius,
unsigned int  seed = 0 
)
private

Definition at line 274 of file balls_in_box.cpp.

bool fastrack::environment::BallsInBox::IsValid ( const Vector3d &  position,
const TrackingBound &  bound,
double  time = std::numeric_limits<double>::quiet_NaN() 
) const
virtual
bool fastrack::environment::BallsInBox::LoadParameters ( const ros::NodeHandle &  n)
privatevirtual
void fastrack::environment::BallsInBox::SensorCallback ( const fastrack_msgs::SensedSpheres::ConstPtr &  msg)
private

Definition at line 81 of file balls_in_box.cpp.

fastrack_msgs::SensedSpheres fastrack::environment::BallsInBox::SimulateSensor ( const SphereSensorParams &  params) const
virtual
void fastrack::environment::BallsInBox::Visualize ( ) const
virtual

Member Data Documentation

std::vector<Vector3d> fastrack::environment::BallsInBox::centers_
private

Definition at line 97 of file balls_in_box.h.

std::vector<double> fastrack::environment::BallsInBox::radii_
private

Definition at line 98 of file balls_in_box.h.


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


fastrack
Author(s): David Fridovich-Keil
autogenerated on Mon Aug 3 2020 21:28:37