[Rock-dev] [rock] #59: Typelib::ContainerType.<<(value) does not support argument strings longer than 1

rock noreply at opendfki.de
Mon Oct 17 17:59:58 CEST 2011


#59: Typelib::ContainerType.<<(value) does not support argument strings longer
than 1
---------------------+-----------------------------------
  Reporter:  alco01  |      Owner:  rock-dev-mailing-list
      Type:  defect  |     Status:  new
  Priority:  normal  |  Component:  base
Resolution:          |   Keywords:  Typelib Ruby
---------------------+-----------------------------------

Comment (by alco01):

 My use case is updating task properties (attributes) using the
 TaskInspector which I am currently cleaning up as discussed with Alex. I
 grab a new sample of the attribute -- of type /std/string as above -- and
 append to the empty /std/string (empty because of new sample) the desired
 new attribute value. The following is a simplified code sniplet without
 workaround:

 {{{
             task.each_property do |attribute|
                 sample = attribute.new_sample
                 sample << desired_value
                 attribute.write sample
             end
 }}}

-- 
Ticket URL: <https://rock.opendfki.de/ticket/59#comment:2>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list