Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
jafar::simu::Environment Class Reference

A basic environment containing a collection of points and segments and a robot. More...


Detailed Description

A basic environment containing a collection of points and segments and a robot.

Definition at line 98 of file environment.hpp.

#include <environment.hpp>

List of all members.

Public Types

typedef std::list< PointPointsListType
typedef std::list< SegmentSegmentsListType

Public Member Functions

 Environment (const jblas::vec &xMin_, const jblas::vec &xMax_, double segLengthMin_=1.0, double segLengthMax_=3.0, unsigned int randomSeedPt=1, unsigned int randomSeedSeg=1)
void addRobot (Robot *robot_)
unsigned int addPoint (jblas::vec const &feature_)
unsigned int addPoint (double x, double y, double z)
unsigned int addPersistentPoint (double x, double y, double z)
unsigned int addSegment (double x1, double y1, double z1, double x2, double y2, double z2)
void addPoints (const std::list< geom::Point3D > &points)
void addSegments (const std::list< geom::Segment3D > &segments)
void addRandomPoints (int nb_=1)
void addRandomSegments (int nb_=1)
void addAlignedPoints (const jblas::vec &x1_, const jblas::vec &x2_, int nbFeatures_, bool bothExt_=true)
const std::list< Point > & getPointsList () const
const std::list< Segment > & getSegmentsList () const
std::list< geom::Segment3DgetSegments3DList () const
std::list< geom::Segment3DgetSegments3DNear (double x, double y, double z, double distance, const jblas::bounded_symmetric_matrix< double, 4 > *cov1=0, const jblas::bounded_symmetric_matrix< double, 4 > *cov2=0, const jblas::mat44 *M=0, jmath::NormalDistribution *normalDist=0)
 Get the list of segments close to a point.
std::string getPointsTclList () const
std::string getSegmentsTclList () const

Public Attributes

jblas::vec xMin
jblas::vec xMax
PointsListType pointsList
PointsListType persistenPointsList
SegmentsListType segmentsList

Protected Member Functions

unsigned int generateId ()

Protected Attributes

std::vector< Robot * > robots
PointFactory pointFactory
SegmentFactory segmentFactory
unsigned int idFactory

Friends

std::ostream & operator<< (std::ostream &s, const Environment &e_)

Member Function Documentation

std::list<geom::Segment3D> jafar::simu::Environment::getSegments3DNear ( double  x,
double  y,
double  z,
double  distance,
const jblas::bounded_symmetric_matrix< double, 4 > *  cov1 = 0,
const jblas::bounded_symmetric_matrix< double, 4 > *  cov2 = 0,
const jblas::mat44 M = 0,
jmath::NormalDistribution normalDist = 0 
)

Get the list of segments close to a point.

Parameters:
xy z coordinate of the point
distanceto the point

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:48 for Jafar by doxygen 1.7.6.1
LAAS-CNRS