Class AccelerationLinear3DStamped
Defined in File acceleration_linear_3d_stamped.hpp
Inheritance Relationships
Base Types
public fuse_variables::FixedSizeVariable< 3 >
(Template Class FixedSizeVariable)public fuse_variables::Stamped
(Class Stamped)
Class Documentation
-
class AccelerationLinear3DStamped : public fuse_variables::FixedSizeVariable<3>, public fuse_variables::Stamped
Variable representing a 3D linear acceleration (ax, ay, az) at a specific time, with a specific piece of hardware.
This is commonly used to represent a robot’s acceleration. The UUID of this class is static after construction. As such, the timestamp and device id cannot be modified. The value of the acceleration can be modified.
Public Types
Public Functions
-
AccelerationLinear3DStamped() = default
Default constructor.
-
explicit AccelerationLinear3DStamped(const rclcpp::Time &stamp, const fuse_core::UUID &device_id = fuse_core::uuid::NIL)
Construct a 3D acceleration at a specific point in time.
- Parameters:
stamp – [in] The timestamp attached to this acceleration.
device_id – [in] An optional device id, for use when variables originate from multiple robots or devices
-
inline double &x()
Read-write access to the X-axis linear acceleration.
-
inline const double &x() const
Read-only access to the X-axis linear acceleration.
-
inline double &y()
Read-write access to the Y-axis linear acceleration.
-
inline const double &y() const
Read-only access to the Y-axis linear acceleration.
-
inline double &z()
Read-write access to the Z-axis linear acceleration.
-
inline const double &z() const
Read-only access to the Z-axis linear acceleration.
-
void print(std::ostream &stream = std::cout) const override
Print a human-readable description of the variable to the provided stream.
- Parameters:
stream – [out] The stream to write to. Defaults to stdout.
Friends
- friend class boost::serialization::access
-
AccelerationLinear3DStamped() = default