[Rock-dev] [rock] #185: Roby TaskScripting DataWriter: Bool
rock
noreply at opendfki.de
Tue Jul 3 19:38:05 CEST 2012
#185: Roby TaskScripting DataWriter: Bool
------------------------------+--------------------------------------------
Reporter: allan.conquest@… | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: minor | Milestone:
Component: toolchain | Keywords: Roby TaskScripting data_writer
------------------------------+--------------------------------------------
In the TaskScripting, you can declare data writers on input ports of your
tasks. I know two ways of doing this but one fails silently in the case of
a bool input port:
{{{
input_port("do_surface", "bool")
}}}
{{{
self.asv_and_pinger.script do
data_writer 'surface_command', ['asv_detector', 'detector',
'do_surface']
poll do
# Not working:
# surface_command = true
# write_surface_command
# Working:
surface_command_writer.write true
end
# ...
end
}}}
--
Ticket URL: <http://rock.opendfki.de/ticket/185>
rock <http://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list