Ejemplo n.º 1
0
 def publish_continue(self):
     rospy.logdebug('Mock Input Device published continue')
     self.instruction_gait_pub.publish(GaitInstruction(std_msgs.msg.Header(stamp=rospy.Time.now()),
                                                       GaitInstruction.CONTINUE, ''))
Ejemplo n.º 2
0
 def publish_pause(self):
     rospy.logdebug('Mock Input Device published pause')
     self.instruction_gait_pub.publish(GaitInstruction(std_msgs.msg.Header(stamp=rospy.Time.now()),
                                                       GaitInstruction.PAUSE, ''))
Ejemplo n.º 3
0
 def publish_stop(self):
     rospy.logdebug('Mock Input Device published stop')
     self.instruction_gait_pub.publish(GaitInstruction(std_msgs.msg.Header(stamp=rospy.Time.now()),
                                                       GaitInstruction.STOP, ''))
Ejemplo n.º 4
0
 def publish_gait(self, string):
     rospy.logdebug('Mock Input Device published gait: ' + string)
     self.instruction_gait_pub.publish(GaitInstruction(std_msgs.msg.Header(stamp=rospy.Time.now()),
                                                       GaitInstruction.GAIT, string))
Ejemplo n.º 5
0
 def publish_decrement_step_size(self):
     rospy.logdebug('Mock Input Device published step size decrement')
     self.instruction_gait_pub.publish(GaitInstruction(std_msgs.msg.Header(stamp=rospy.Time.now()),
                                                       GaitInstruction.DECREMENT_STEP_SIZE, ''))
Ejemplo n.º 6
0
 def publish_increment_step_size(self):
     rospy.logdebug('Mock Input Device published step size increment')
     self._instruction_gait_pub.publish(GaitInstruction(Header(stamp=rospy.Time.now()),
                                                        GaitInstruction.INCREMENT_STEP_SIZE, '', self._id))
Ejemplo n.º 7
0
 def publish_sm_to_unknown(self):
     rospy.logdebug('Mock Input Device published state machine to unknown')
     self._instruction_gait_pub.publish(GaitInstruction(Header(stamp=rospy.Time.now()),
                                                        GaitInstruction.UNKNOWN, '', self._id))