[Rock-dev] roby: nil can't be coerced into Fixnum (TypeError)

Sylvain Joyeux sylvain.joyeux at dfki.de
Tue Apr 5 10:54:38 CEST 2011


On 04/05/2011 10:29 AM, Alexander Duda wrote:
> Hi,
>
> if a output port triggers another input port but no default activity is
> defined in the .orogen file, roby tries to sum up the periods which are
> nil in that case.
*All* deployed tasks have activities.

> = nil can't be coerced into Fixnum (TypeError)
> = Backtrace
> | /home/aduda/Avalon/tools/orocos.rb/lib/orocos/roby/task_context.rb:351:in `+',
> |   /home/aduda/Avalon/tools/orocos.rb/lib/orocos/roby/task_context.rb:351:in `propagate_ports_dynamics_on_outputs',
> |   /usr/lib/ruby/1.8/set.rb:194:in `each',
> |   /usr/lib/ruby/1.8/set.rb:194:in `each_key',
> |   /usr/lib/ruby/1.8/set.rb:194:in `each',
> |   (eval):17:in `each_value',
> |   (eval):17:in `each_output_port',
> |   scripts/orocos/instanciate:3
> =

The problem (and the proper fix) is described here:

   http://rock.opendfki.de/ticket/16

If the workaround does not work for you, please tell me (I assume it 
does as Matthias had the same problem last week and I pointed him to the 
same solution).

Indeed, using a periodic activity to the task would work as well (it has 
more or less the same effect than specifying the period on the device)
-- 
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
-----------------------------------------------------------------------


More information about the Rock-dev mailing list