...
 
Commits (2)
......@@ -8,7 +8,7 @@ sp {propose*skip
sp {apply*operator*skip
(state <s> ^operator <op> ^io.output-link <ol>)
(<op> ^name )
(<op> ^name skip)
-->
(write |skip cycle|)
(<ol> ^nop <nop>)
......
......@@ -15,7 +15,7 @@ class Clock:
def update(self):
# update wall clock and cycle counter
self.cycle += 1;
self.cycle += 1
self.agent.Update(self.cycle_id, self.cycle)
self.agent.Update(self.time_id, rospy.get_rostime().to_sec())
......
import output_module
from output_module import OutputModule
class NOp(OutputModule):
class Nop(OutputModule):
def __init__(self, config):
super(NOp, self).__init__("nop")
super(Nop, self).__init__("nop")
output_module.register("nop", NOp)
output_module.register("nop", Nop)
......@@ -18,11 +18,11 @@ class TextCmd(OutputModule):
def startHook(self, cmd_id):
# extract text command parameters
type_id = cmd_id.FindByAttribute("type", 0);
type_id = cmd_id.FindByAttribute("type", 0)
if not type_id: # or type_id.GetValueType() != "string":
rospy.logerr("textcmd output module: type attribute is empty")
return "error"
command_id = cmd_id.FindByAttribute("command", 0);
command_id = cmd_id.FindByAttribute("command", 0)
if not command_id: # or command_id.GetValueType() != "string":
rospy.logerr("textcmd output module: command attribute is empty")
return "error"
......