Exemplo n.º 1
0
 def test_vel_pid(self):
     rospy.init_node('test_vel_pid')
     controller = MotionControl()
     goal = Bunch()
     goal.target = 5.0
     controller.motion_goal(goal)
     for i in range(30):
         rospy.logwarn(i)
         time.sleep(1)
     controller.stop()
Exemplo n.º 2
0
 def test_vel_pid(self):
     rospy.init_node('test_vel_pid')
     controller = MotionControl()
     goal = Bunch()
     goal.target = 5.0
     controller.motion_goal(goal)
     for i in range(30):
         rospy.logwarn(i)
         time.sleep(1)
     controller.stop()
 def test_vel_pid(self):
     rospy.init_node('test_motion_control')
     controller = MotionControl()
     goal = Bunch()
     goal.target = 2.5
     controller.motion_goal(goal)
     for i in range(40):
         rospy.logwarn(i)
         time.sleep(1)
     # goal.target = 0.0
     # controller.motion_goal(goal)
     # for i in range(30):
     #     rospy.logwarn(i)
     #     time.sleep(1)
     # goal.target = 0.5
     # controller.motion_goal(goal)
     # for i in range(30):
     #     rospy.logwarn(i)
         time.sleep(1)
     controller.stop()
Exemplo n.º 4
0
 def test_vel_pid(self):
     rospy.init_node('test_motion_control')
     controller = MotionControl()
     goal = Bunch()
     goal.target = 2.5
     controller.motion_goal(goal)
     for i in range(40):
         rospy.logwarn(i)
         time.sleep(1)
         # goal.target = 0.0
         # controller.motion_goal(goal)
         # for i in range(30):
         #     rospy.logwarn(i)
         #     time.sleep(1)
         # goal.target = 0.5
         # controller.motion_goal(goal)
         # for i in range(30):
         #     rospy.logwarn(i)
         time.sleep(1)
     controller.stop()