mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-04 03:34:08 +05:30
Fixed a couple of comment typos in base_controller.py
This commit is contained in:
parent
06884afb87
commit
b1b6caf47c
@ -68,7 +68,7 @@ class BaseController:
|
|||||||
self.t_delta = rospy.Duration(1.0 / self.rate)
|
self.t_delta = rospy.Duration(1.0 / self.rate)
|
||||||
self.t_next = now + self.t_delta
|
self.t_next = now + self.t_delta
|
||||||
|
|
||||||
# internal data
|
# Internal data
|
||||||
self.enc_left = None # encoder readings
|
self.enc_left = None # encoder readings
|
||||||
self.enc_right = None
|
self.enc_right = None
|
||||||
self.x = 0 # position in xy plane
|
self.x = 0 # position in xy plane
|
||||||
@ -80,7 +80,7 @@ class BaseController:
|
|||||||
self.v_des_right = 0
|
self.v_des_right = 0
|
||||||
self.last_cmd_vel = now
|
self.last_cmd_vel = now
|
||||||
|
|
||||||
# subscriptions
|
# Subscriptions
|
||||||
rospy.Subscriber("cmd_vel", Twist, self.cmdVelCallback)
|
rospy.Subscriber("cmd_vel", Twist, self.cmdVelCallback)
|
||||||
|
|
||||||
# Clear any old odometry info
|
# Clear any old odometry info
|
||||||
@ -131,7 +131,7 @@ class BaseController:
|
|||||||
self.then = now
|
self.then = now
|
||||||
dt = dt.to_sec()
|
dt = dt.to_sec()
|
||||||
|
|
||||||
# calculate odometry
|
# Calculate odometry
|
||||||
if self.enc_left == None:
|
if self.enc_left == None:
|
||||||
dright = 0
|
dright = 0
|
||||||
dleft = 0
|
dleft = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user