RealVectorControlSpace.h
147 }
unsigned int getSerializationLength() const override
Returns the serialization size for a single control in this space.
Definition: RealVectorControlSpace.cpp:158
ControlSamplerPtr allocDefaultControlSampler() const override
Allocate the default control sampler.
Definition: RealVectorControlSpace.cpp:91
void copyControl(Control *destination, const Control *source) const override
Copy a control to another.
Definition: RealVectorControlSpace.cpp:72
Control * allocControl() const override
Allocate memory for a control.
Definition: RealVectorControlSpace.cpp:96
void setBounds(const base::RealVectorBounds &bounds)
Set the bounds (min max values for each dimension) for the control.
Definition: RealVectorControlSpace.cpp:58
bool equalControls(const Control *control1, const Control *control2) const override
Check if two controls are the same.
Definition: RealVectorControlSpace.cpp:78
RealVectorControlSpace(const base::StateSpacePtr &stateSpace, unsigned int dim)
Constructor takes the state space the controls correspond to and the dimension of the space of contro...
Definition: RealVectorControlSpace.h:152
const std::string & getName() const
Get the name of the control space.
Definition: ControlSpace.cpp:72
void setName(const std::string &name)
Set the name of the control space.
Definition: ControlSpace.cpp:77
double * getValueAddressAtIndex(Control *control, unsigned int index) const override
Many controls contain a number of double values. This function provides a means to get the memory add...
Definition: RealVectorControlSpace.cpp:122
ompl::control::Control ControlType
Define the type of control allocated by this control space.
Definition: ControlSpace.h:131
void freeControl(Control *control) const override
Free the memory of a control.
Definition: RealVectorControlSpace.cpp:103
A shared pointer wrapper for ompl::control::ControlSampler.
void printSettings(std::ostream &out) const override
Print the settings for this control space to a stream.
Definition: RealVectorControlSpace.cpp:145
void serialize(void *serialization, const Control *ctrl) const override
Serializes the given control into the serialization buffer.
Definition: RealVectorControlSpace.cpp:163
void deserialize(Control *ctrl, const void *serialization) const override
Deserializes a control from the serialization buffer.
Definition: RealVectorControlSpace.cpp:168
void nullControl(Control *control) const override
Make the control have no effect if it were to be applied to a state for any amount of time.
Definition: RealVectorControlSpace.cpp:110
void sample(Control *control) override
Sample a control. All other control sampling functions default to this one, unless a user-specified i...
Definition: RealVectorControlSpace.cpp:42
unsigned int getDimension() const override
Get the dimension of this control space.
Definition: RealVectorControlSpace.cpp:67
RealVectorControlUniformSampler(const ControlSpace *space)
Constructor.
Definition: RealVectorControlSpace.h:149
void setup() override
Perform final setup steps. This function is automatically called by the SpaceInformation.
Definition: RealVectorControlSpace.cpp:52
double * values
An array of length n, representing the value of the control.
Definition: RealVectorControlSpace.h:147
double operator[](unsigned int i) const
Access element i of values. This does not check whether the index is within bounds.
Definition: RealVectorControlSpace.h:134
void printControl(const Control *control, std::ostream &out) const override
Print a control to a stream.
Definition: RealVectorControlSpace.cpp:127
const base::RealVectorBounds & getBounds() const
Get the bounds (min max values for each dimension) for the control.
Definition: RealVectorControlSpace.h:165
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111