@@ -0,0 +1,1167 @@
+#!/usr/bin/env python%0A# encoding=utf8%0Afrom __future__ import print_function%0Afrom flexbe_core import EventState, Logger%0A%0A%0A%0Aclass StringListLogger(EventState):%0A    '''%0A    MoveArm receive a ROS pose as input and launch a ROS service with the same pose%0A%0A    %3E# List     string%5B%5D      list to log%0A%0A    %3C= done     Finish job.%0A    '''%0A%0A    def __init__(self):%0A        # See example_state.py for basic explanations.%0A        super(StringListLogger, self).__init__(outcomes=%5B'done'%5D, input_keys=%5B'List'%5D)%0A%0A    def execute(self, userdata):%0A        # This method is called periodically while the state is active.%0A        # Main purpose is to check state conditions and trigger a corresponding outcome.%0A        # If no outcome is returned, the state will stay active.%0A%0A        return 'done'  # One of the outcomes declared above.%0A%0A    def on_enter(self, userdata):%0A        # This method is called when the state becomes active, a transition from another state to this one is taken.%0A        # It is primarily used to start actions which are associated with this state.%0A        if userdata.List != None:%0A            for line in userdata.List:%0A                Logger.loginfo(line)%0A

ajout d'un simple string[] logger