Example #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, ''))
Example #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, ''))
Example #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, ''))
Example #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))
Example #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, ''))
Example #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))
Example #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))