Skip to content

Commit

Permalink
WIP #12: Started defining publishers for state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
SwapnilPande committed Apr 28, 2019
1 parent 95e8b20 commit 650cc39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robot_high_level_control/scripts/state_machine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import rospy
from geometry_msgs.msg import Twist

class HighLevelController:
def __init__(self, starting_state = "idle"):
Expand All @@ -9,7 +11,9 @@ def __init__(self, starting_state = "idle"):
self.p2 = [3,3]
self.p3 = [0,0]

self.publishers = {}
self.publishers = {
"drive_cmd" : rospy.Publisher('drive_cmd', Twist, queue_size=1)
}
self.state_vars = {}

def process_state_changes(self):
Expand Down

0 comments on commit 650cc39

Please sign in to comment.