45 #ifndef FASTRACK_STATE_STATE_H 46 #define FASTRACK_STATE_STATE_H 49 #include <fastrack_msgs/State.h> 61 virtual double X()
const = 0;
62 virtual double Y()
const = 0;
63 virtual double Z()
const = 0;
64 virtual Vector3d
Position()
const = 0;
73 virtual void FromVector(
const VectorXd& x) = 0;
74 virtual VectorXd
ToVector()
const = 0;
78 virtual void FromRos(
const fastrack_msgs::State& msg) = 0;
79 virtual fastrack_msgs::State
ToRos()
const = 0;
82 static inline void Seed(
unsigned int seed) {
rng_.seed(seed); }
88 static std::random_device
rd_;
89 static std::default_random_engine
rng_;
virtual Vector3d Position() const =0
virtual VectorXd Configuration() const =0
static std::random_device rd_
virtual void FromRos(const fastrack_msgs::State &msg)=0
virtual VectorXd ToVector() const =0
virtual double X() const =0
virtual double Z() const =0
static std::default_random_engine rng_
void FromRosPtr(const fastrack_msgs::State::ConstPtr &msg)
virtual void FromVector(const VectorXd &x)=0
static void Seed(unsigned int seed)
virtual fastrack_msgs::State ToRos() const =0
virtual double Y() const =0
virtual std::vector< Vector3d > OccupiedPositions() const =0