/pal_navigation_sm#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/pal_navigation_sm Quick Facts

Category

Navigation

Message type

pal_navigation_msgs/Acknowledgment

Set the navigation mode to mapping or to localization mode

Quick snippets#

Call the service from command-line#
$ rosservice call /pal_navigation_sm pal_navigation_msgs/Acknowledgment
# (tip: press Tab to complete the message prototype)
Call the service from a Python script#
#!/usr/bin/env python

import rospy
from pal_navigation_msgs.srv import *


if __name__ == "__main__":

    rospy.wait_for_service("/pal_navigation_sm")

    try:
        proxy = rospy.ServiceProxy("/pal_navigation_sm", Acknowledgment)
        response = proxy(args...) # check the pal_navigation_msgs/Acknowledgment message type for the expected arguments
        rospy.loginfo(response)

    except rospy.ServiceException as e:
        rospy.logerror("Service call failed: %s" % e)

REST endpoint#

You can also access this service from a webpage displayed on the robot’s touchscreen via this endpoint:

http://ari-0c/service/navigation_sm

(replace ari-0c by the serial number of your own robot).

See REST interface for the general documentation of the REST endpoints and code samples.