[Rock-dev] Discussion: Timestamped Commands in base/types
Steffen Planthaber
Steffen.Planthaber at dfki.de
Tue Nov 5 15:18:18 CET 2013
Am 05.11.2013 14:45, schrieb Sylvain Joyeux:
> Having an explicit constructor would be a better option
> than the set method, though.
>
> explicit TimeStamped(BASE const& base, base::Time const& time)
> : BASE(base), time(time) {}
Which wouldn't have to have the explicit keyword, because it takes two
parameters and must be called explicitly in every case ;-)
But as nobody is against timestamped commands in general(yet), and there
is seemingly no use to re-label commands to samples::commands, the
commands should then get only a time and an additional constructor
including the time.
Best, Steffen
> It would allow to do convertions in one line (instead of having to
> create a variable, call set and then use it).
>
> ---
> Sylvain Joyeux (Dr.Ing.)
> 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
> -----------------------------------------------------------------------
--
Steffen Planthaber
Weltraumrobotik
###############################################
#### Neue Anschrift und neue Kontaktdaten! ####
###############################################
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Str.5
28359 Bremen, Germany
Phone: +49 (0)421 178 45 - 4125
Fax: +49 (0)421 218 - 64150
E-Mail: steffen.planthaber 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