scripts
dock_robot.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# Copyright (c) 2015, Fetch Robotics Inc.
4
# Author: Michael Ferguson
5
6
import
rospy
7
import
actionlib
8
from
fetch_auto_dock_msgs.msg
import
DockAction, DockGoal
9
10
if
__name__ ==
"__main__"
:
11
rospy.init_node(
"dock_script"
)
12
ACTION_NAME =
"/dock"
13
rospy.loginfo(
"Connecting to %s..."
% ACTION_NAME)
14
client =
actionlib.SimpleActionClient
(ACTION_NAME, DockAction)
15
client.wait_for_server()
16
rospy.loginfo(
"Sending dock goal..."
)
17
goal = DockGoal()
18
client.send_goal(goal)
19
rospy.loginfo(
"Done, press Ctrl-C to exit"
)
20
rospy.spin()
actionlib::SimpleActionClient
fetch_open_auto_dock
Author(s): Michael Ferguson, Griswald Brooks
autogenerated on Mon Feb 28 2022 22:21:37