|
@@ -23,7 +23,7 @@ from std_msgs.msg import Int32
|
|
|
|
|
|
""" Class to receive Twist commands and publish wheel Odometry data """
|
|
""" Class to receive Twist commands and publish wheel Odometry data """
|
|
class BaseController:
|
|
class BaseController:
|
|
-
|
|
|
|
|
|
+
|
|
def __init__(self, is_use_serial, arduino, base_frame, name="base_controllers_node"):
|
|
def __init__(self, is_use_serial, arduino, base_frame, name="base_controllers_node"):
|
|
self.use_serial = is_use_serial
|
|
self.use_serial = is_use_serial
|
|
self.arduino = arduino
|
|
self.arduino = arduino
|
|
@@ -35,7 +35,7 @@ class BaseController:
|
|
self.timeout = rospy.get_param("~base_controller_timeout", 0.7)
|
|
self.timeout = rospy.get_param("~base_controller_timeout", 0.7)
|
|
|
|
|
|
self.debugPID = rospy.get_param('/dynamic_tutorials/debugPID', False)
|
|
self.debugPID = rospy.get_param('/dynamic_tutorials/debugPID', False)
|
|
-
|
|
|
|
|
|
+
|
|
pid_params = dict()
|
|
pid_params = dict()
|
|
pid_params['wheel_diameter'] = rospy.get_param("~wheel_diameter", 0.058)
|
|
pid_params['wheel_diameter'] = rospy.get_param("~wheel_diameter", 0.058)
|
|
pid_params['wheel_track'] = rospy.get_param("~wheel_track", 0.126)
|
|
pid_params['wheel_track'] = rospy.get_param("~wheel_track", 0.126)
|