[Rock-dev] Replacement for base::actuators::MotorState
Janosch Machowinski
Janosch.Machowinski at dfki.de
Tue Feb 19 14:28:11 CET 2013
On 19.02.2013 14:25, Sylvain Joyeux wrote:
> 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.
This is more about a calibrated vs an incremental position.
By absolute I mean that the actuator is in an known absolute position.
For an incremental encoder I only know how much it moved since
startup but not how it is positioned...
Janosch
--
Dipl. Inf. Janosch Machowinski
SAR- & Sicherheitsrobotik
Universität Bremen
FB 3 - Mathematik und Informatik
AG Robotik
Robert-Hooke-Straße 5
28359 Bremen, Germany
Tel.: +49 421 178 45-6614
Zentrale: +49 421 178 45-6611
Fax: +49 421 178 45-4150
E-Mail: jmachowinski at informatik.uni-bremen.de
Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
More information about the Rock-dev
mailing list