/go_and_dock#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/go_and_dock Quick Facts

Category

Navigation

Message type

dock_charge_sm_msgs/GoAndDock

Sends the robot to the Dokstation POI and once reached it starts the docking manouver

Quick snippets#

Send a goal from the command-line#
$ rostopic pub /go_and_dock/goal dock_charge_sm_msgs/GoAndDockActionGoal # press Tab to complete the message prototype

How to use in your code#

Call the action from a Python script#
#!/usr/bin/env python

import rospy
import actionlib
from dock_charge_sm_msgs.msg import *


if __name__ == "__main__":

    client = actionlib.SimpleActionClient("/go_and_dock", dock_charge_sm_msgs.msg.GoAndDockAction)
    client.wait_for_server()

    # check the dock_charge_sm_msgs/GoAndDockGoal message
    # definition for the possible goal parameters
    goal = dock_charge_sm_msgs.msg.GoAndDockGoal(param1=..., param2=...)

    client.send_goal(goal)
    client.wait_for_result()

    rospy.loginfo("Action returned: %s" % client.get_result())