Go to the documentation of this file.00001
00002
00003 import rospy
00004 from phantomx_gazebo.phantomx import PhantomX
00005
00006
00007 if __name__ == '__main__':
00008 rospy.init_node('walker_demo')
00009
00010 rospy.loginfo('Instantiating robot Client')
00011 robot = PhantomX()
00012 rospy.sleep(1)
00013
00014 rospy.loginfo('Walker Demo Starting')
00015
00016 robot.set_walk_velocity(0.2, 0, 0)
00017 rospy.sleep(3)
00018 robot.set_walk_velocity(1, 0, 0)
00019 rospy.sleep(3)
00020 robot.set_walk_velocity(0, 1, 0)
00021 rospy.sleep(3)
00022 robot.set_walk_velocity(0, -1, 0)
00023 rospy.sleep(3)
00024 robot.set_walk_velocity(-1, 0, 0)
00025 rospy.sleep(3)
00026 robot.set_walk_velocity(1, 1, 0)
00027 rospy.sleep(5)
00028 robot.set_walk_velocity(0, 0, 0)
00029
00030 rospy.loginfo('Walker Demo Finished')