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