template<typename Scalar>
struct icarus::Vec3Handle< Scalar >
Handle for accessing a Vec3 signal as three scalar components.
Vec3Handle bundles three SignalHandles (x, y, z) and provides convenience methods for reading/writing the entire vector.
Usage:
Vec3<double> position_;
registry.register_output_vec3("position", &position_, "m");
Vec3<double> p = pos.
get();
Handle for accessing a Vec3 signal as three scalar components.
Definition VecHandle.hpp:39
SignalHandle< Scalar > x
X component handle.
Definition VecHandle.hpp:40
void set(const Vec3< Scalar > &v)
Write all components from a Vec3.
Definition VecHandle.hpp:52
Vec3< Scalar > get() const
Read all components as a Vec3.
Definition VecHandle.hpp:47
- Template Parameters
-
| Scalar | The scalar type (double or casadi::MX) |