Nav2 Navigation Stack - humble  humble
ROS 2 Navigation Stack
Public Member Functions | Public Attributes | List of all members
nav2_simple_commander.robot_navigator.BasicNavigator Class Reference
Inheritance diagram for nav2_simple_commander.robot_navigator.BasicNavigator:
Inheritance graph
[legend]
Collaboration diagram for nav2_simple_commander.robot_navigator.BasicNavigator:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, node_name='basic_navigator', namespace='')
 
def destroyNode (self)
 
def destroy_node (self)
 
def setInitialPose (self, initial_pose)
 
def goThroughPoses (self, poses, behavior_tree='')
 
def goToPose (self, pose, behavior_tree='')
 
def followWaypoints (self, poses)
 
def spin (self, spin_dist=1.57, time_allowance=10)
 
def backup (self, backup_dist=0.15, backup_speed=0.025, time_allowance=10)
 
def assistedTeleop (self, time_allowance=30)
 
def followPath (self, path, controller_id='', goal_checker_id='')
 
def cancelTask (self)
 
def isTaskComplete (self)
 
def getFeedback (self)
 
def getResult (self)
 
def waitUntilNav2Active (self, navigator='bt_navigator', localizer='amcl')
 
def getPath (self, start, goal, planner_id='', use_start=False)
 
def getPathThroughPoses (self, start, goals, planner_id='', use_start=False)
 
def smoothPath (self, path, smoother_id='', max_duration=2.0, check_for_collision=False)
 
def changeMap (self, map_filepath)
 
def clearAllCostmaps (self)
 
def clearLocalCostmap (self)
 
def clearGlobalCostmap (self)
 
def getGlobalCostmap (self)
 
def getLocalCostmap (self)
 
def lifecycleStartup (self)
 
def lifecycleShutdown (self)
 
def info (self, msg)
 
def warn (self, msg)
 
def error (self, msg)
 
def debug (self, msg)
 

Public Attributes

 initial_pose
 
 goal_handle
 
 result_future
 
 feedback
 
 status
 
 initial_pose_received
 
 nav_through_poses_client
 
 nav_to_pose_client
 
 follow_waypoints_client
 
 follow_path_client
 
 compute_path_to_pose_client
 
 compute_path_through_poses_client
 
 smoother_client
 
 spin_client
 
 backup_client
 
 assisted_teleop_client
 
 localization_pose_sub
 
 initial_pose_pub
 
 change_maps_srv
 
 clear_costmap_global_srv
 
 clear_costmap_local_srv
 
 get_costmap_global_srv
 
 get_costmap_local_srv
 

Detailed Description

Definition at line 47 of file robot_navigator.py.

Member Function Documentation

◆ cancelTask()

def nav2_simple_commander.robot_navigator.BasicNavigator.cancelTask (   self)

◆ changeMap()

def nav2_simple_commander.robot_navigator.BasicNavigator.changeMap (   self,
  map_filepath 
)
Change the current static map in the map server.

Definition at line 435 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.change_maps_srv, nav2_simple_commander.robot_navigator.BasicNavigator.error(), and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Here is the call graph for this function:

◆ clearAllCostmaps()

def nav2_simple_commander.robot_navigator.BasicNavigator.clearAllCostmaps (   self)
Clear all costmaps.

Definition at line 450 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.clearGlobalCostmap(), and nav2_simple_commander.robot_navigator.BasicNavigator.clearLocalCostmap().

Here is the call graph for this function:

◆ clearGlobalCostmap()

def nav2_simple_commander.robot_navigator.BasicNavigator.clearGlobalCostmap (   self)
Clear global costmap.

Definition at line 465 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.clear_costmap_global_srv, and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Referenced by nav2_simple_commander.robot_navigator.BasicNavigator.clearAllCostmaps().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearLocalCostmap()

def nav2_simple_commander.robot_navigator.BasicNavigator.clearLocalCostmap (   self)
Clear local costmap.

Definition at line 456 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.clear_costmap_local_srv, and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Referenced by nav2_simple_commander.robot_navigator.BasicNavigator.clearAllCostmaps().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ followPath()

def nav2_simple_commander.robot_navigator.BasicNavigator.followPath (   self,
  path,
  controller_id = '',
  goal_checker_id = '' 
)

◆ followWaypoints()

def nav2_simple_commander.robot_navigator.BasicNavigator.followWaypoints (   self,
  poses 
)

◆ getFeedback()

def nav2_simple_commander.robot_navigator.BasicNavigator.getFeedback (   self)
Get the pending action feedback message.

Definition at line 296 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.feedback.

◆ getGlobalCostmap()

def nav2_simple_commander.robot_navigator.BasicNavigator.getGlobalCostmap (   self)
Get the global costmap.

Definition at line 474 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.get_costmap_global_srv, and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Here is the call graph for this function:

◆ getLocalCostmap()

def nav2_simple_commander.robot_navigator.BasicNavigator.getLocalCostmap (   self)
Get the local costmap.

Definition at line 483 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator.get_costmap_local_srv, and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Here is the call graph for this function:

◆ getPath()

def nav2_simple_commander.robot_navigator.BasicNavigator.getPath (   self,
  start,
  goal,
  planner_id = '',
  use_start = False 
)
Send a `ComputePathToPose` action request.

Definition at line 354 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator._getPathImpl().

Here is the call graph for this function:

◆ getPathThroughPoses()

def nav2_simple_commander.robot_navigator.BasicNavigator.getPathThroughPoses (   self,
  start,
  goals,
  planner_id = '',
  use_start = False 
)

◆ getResult()

def nav2_simple_commander.robot_navigator.BasicNavigator.getResult (   self)
Get the pending action result message.

Definition at line 300 of file robot_navigator.py.

References Cell.status, and nav2_simple_commander.robot_navigator.BasicNavigator.status.

◆ goThroughPoses()

def nav2_simple_commander.robot_navigator.BasicNavigator.goThroughPoses (   self,
  poses,
  behavior_tree = '' 
)

◆ goToPose()

def nav2_simple_commander.robot_navigator.BasicNavigator.goToPose (   self,
  pose,
  behavior_tree = '' 
)

◆ isTaskComplete()

def nav2_simple_commander.robot_navigator.BasicNavigator.isTaskComplete (   self)

◆ lifecycleShutdown()

def nav2_simple_commander.robot_navigator.BasicNavigator.lifecycleShutdown (   self)

◆ lifecycleStartup()

def nav2_simple_commander.robot_navigator.BasicNavigator.lifecycleStartup (   self)
Startup nav2 lifecycle system.

Definition at line 492 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator._waitForInitialPose(), and nav2_simple_commander.robot_navigator.BasicNavigator.info().

Here is the call graph for this function:

◆ setInitialPose()

def nav2_simple_commander.robot_navigator.BasicNavigator.setInitialPose (   self,
  initial_pose 
)

◆ smoothPath()

def nav2_simple_commander.robot_navigator.BasicNavigator.smoothPath (   self,
  path,
  smoother_id = '',
  max_duration = 2.0,
  check_for_collision = False 
)
Send a `SmoothPath` action request.

Definition at line 426 of file robot_navigator.py.

References nav2_simple_commander.robot_navigator.BasicNavigator._smoothPathImpl().

Here is the call graph for this function:

◆ waitUntilNav2Active()

def nav2_simple_commander.robot_navigator.BasicNavigator.waitUntilNav2Active (   self,
  navigator = 'bt_navigator',
  localizer = 'amcl' 
)

The documentation for this class was generated from the following file: