43 #ifndef FASTRACK_STATE_POSITION_VELOCITY_H 44 #define FASTRACK_STATE_POSITION_VELOCITY_H 57 explicit PositionVelocity(
double x,
double y,
double z,
double vx,
double vy,
59 explicit PositionVelocity(
const Vector3d& position,
const Vector3d& velocity);
107 void FromRos(
const fastrack_msgs::State& msg);
108 fastrack_msgs::State
ToRos()
const;
117 static void SetBounds(
const std::vector<double>& lower,
118 const std::vector<double>& upper);
VectorXd ToVector() const
static void SetBounds(const PositionVelocity &lower, const PositionVelocity &upper)
static PositionVelocity Sample()
void SetConfigurationDot(const VectorXd &configuration_dot)
PositionVelocity & operator+=(const PositionVelocity &rhs)
Vector3d Velocity() const
void FromVector(const VectorXd &x)
friend PositionVelocity operator/(PositionVelocity lhs, double s)
static const PositionVelocity & GetUpper()
PositionVelocity & operator-=(const PositionVelocity &rhs)
friend PositionVelocity operator+(PositionVelocity lhs, const PositionVelocity &rhs)
static VectorXd GetConfigurationLower()
Vector3d Position() const
static const PositionVelocity & GetLower()
PositionVelocity & operator*=(double s)
static PositionVelocity lower_
std::vector< Vector3d > OccupiedPositions() const
static VectorXd GetConfigurationUpper()
void FromRos(const fastrack_msgs::State &msg)
fastrack_msgs::State ToRos() const
static constexpr size_t StateDimension()
PositionVelocity & operator/=(double s)
friend PositionVelocity operator*(PositionVelocity lhs, double s)
static VectorXd SampleConfiguration()
static PositionVelocity upper_
static constexpr size_t ConfigurationDimension()
VectorXd Configuration() const
static PositionVelocity SampleCloseTo(const Vector3d &pos, double d)
friend PositionVelocity operator-(PositionVelocity lhs, const PositionVelocity &rhs)