[Rock-dev] Replacement for base::actuators::MotorState

Sylvain Joyeux sylvain.joyeux at dfki.de
Tue Feb 19 14:25:55 CET 2013


On 02/19/2013 10:59 AM, Janosch Machowinski wrote:
> Included remarks from Matthias,
> turns out we have already a base::Temperature.
> I did not add constructors yet as this is more about
> the layout and fields of the types and if the structure
> would cover all of our use cases.
>
>       struct Encoder
>       {
>       public:
>           ///determines weather this is an absolute
>           ///or incremental reading
>           bool absolute;
>
>           ///Position of the actuator
>           base::Angle position;
>
>           ///Speed in radians per second
>           double speed;
>       };
By the way, why make the distinction between absolute / incremental ? If 
we standardize (the way we do already) on absolute-since-the-beginning 
position, you can easily extract the other information from there.

Sylvain


More information about the Rock-dev mailing list