00001
00002
00003
00004 import roslib; roslib.load_manifest('clearpath_base')
00005 import rospy
00006
00007 from base import Clearpath
00008
00009
00010 class Kinematic(Clearpath):
00011 def __init__(self):
00012 rospy.loginfo("Clearpath Base")
00013 rospy.loginfo("Using closed-loop kinematic control")
00014
00015 Clearpath.__init__(self)
00016
00017 if self.horizon:
00018 self.accel = rospy.get_param('~accel', 2)
00019 rospy.loginfo("Using %d m/s^2 acceleration", self.accel)
00020
00021 def cmd_vel(self, linear_velocity, angular_velocity):
00022 self.horizon.set_velocity(linear_velocity, angular_velocity, self.accel)
00023
00024
00025 Kinematic().run()