Main MRPT website > C++ reference for MRPT 1.9.9
CVehicleVelCmd_Holo.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 
13 namespace mrpt
14 {
15 namespace kinematics
16 {
17 /** Kinematic model for
18 *
19 * \ingroup mrpt_kinematics_grp
20 */
22 {
24  public:
25  /** speed(m / s) */
26  double vel;
27  /**: direction, **relative** to the current robot heading (radians). 0 means
28  * forward. */
29  double dir_local;
30  /**: Blending time between current and target time. */
31  double ramp_time;
32  /**: (rad/s) rotational speed for rotating such as the robot slowly faces
33  * forward. */
34  double rot_speed;
35 
38  double vel, double dir_local, double ramp_time, double rot_speed);
39  virtual ~CVehicleVelCmd_Holo();
40  size_t getVelCmdLength() const override;
41  std::string getVelCmdDescription(const int index) const override;
42  double getVelCmdElement(const int index) const override;
43  void setVelCmdElement(const int index, const double val) override;
44  bool isStopCmd() const override;
45  void setToStop() override;
46 
47  // See base class docs.
48  void cmdVel_scale(double vel_scale) override;
49  double cmdVel_limits(
50  const mrpt::kinematics::CVehicleVelCmd& prev_vel_cmd, const double beta,
51  const TVelCmdParams& params) override;
52 };
53 
54 } // End of namespace
55 } // End of namespace
std::string getVelCmdDescription(const int index) const override
Get textual, human-readable description of each velocity command component.
void cmdVel_scale(double vel_scale) override
Scale the velocity command encoded in this object.
size_t getVelCmdLength() const override
Get number of components in each velocity command.
void setToStop() override
Set to a command that means "do not move" / "stop".
Virtual base for velocity commands of different kinematic models of planar mobile robot...
double ramp_time
: Blending time between current and target time.
void setVelCmdElement(const int index, const double val) override
Set each velocity command component.
double dir_local
: direction, relative to the current robot heading (radians).
GLuint index
Definition: glext.h:4054
int val
Definition: mrpt_jpeglib.h:955
double getVelCmdElement(const int index) const override
Get each velocity command component.
GLsizei const GLchar ** string
Definition: glext.h:4101
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
double cmdVel_limits(const mrpt::kinematics::CVehicleVelCmd &prev_vel_cmd, const double beta, const TVelCmdParams &params) override
Updates this command, computing a blended version of beta (within [0,1]) of vel_cmd and 1-beta of pre...
bool isStopCmd() const override
Returns true if the command means "do not move" / "stop".
Parameters that may be used by cmdVel_limits() in any derived classes.
GLenum const GLfloat * params
Definition: glext.h:3534
double rot_speed
: (rad/s) rotational speed for rotating such as the robot slowly faces forward.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019