[Rock-dev] [Discussion] usage of infinity for "no-data" tagging

Sylvain Joyeux sylvain.joyeux at dfki.de
Fri Jul 29 11:13:12 CEST 2011


On 07/29/2011 11:08 AM, Janosch Machowinski wrote:
> On 28.07.2011 14:10, Sylvain Joyeux wrote:
>> I've created a proposal for a guideline page for that
>>
>>      http://rock.opendfki.de/wiki/WikiStart/Standards/RG3
>>
>> Please discuss. I'll add the relevant bits to base when we agree on the
>> proposal.
>>
> Hey,
> I really don't see the difference in unknown and unset. From a user point
> of view, it should bail both times. Or do I miss an use case where you
> need to distinguish ?
>
> My second point would be base/float.hpp as this one more or less just
> doubles the functionality of limits, I would vote for dropping it and using
> std::numberic_limits.
The idea was that

   base::nan<double>();

is a lot less typing and easier to remember than

   std::numeric_limits<double>::quiet_nan();

But that's mostly a proposal ;-)

-- 
Sylvain Joyeux
Space&  Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------



More information about the Rock-dev mailing list