Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions commander_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,23 @@ This is a Python3 API for costmap 2d messages from the stack. It provides the ba
+---------------------------------------+----------------------------------------------------------------------------+
| getCostmapTimestamp() | Get costmap timestamp. |
+---------------------------------------+----------------------------------------------------------------------------+
| getCostXY(mx, my) | Get the cost (``np.uint8``) of a cell in the costmap using mx (``int``) |
| | , my (``int``) of Map Coordinate. |
+---------------------------------------+----------------------------------------------------------------------------+
| getCostIdx(index) | Get the cost (``np.uint8``) of a cell in the costmap using index (``int``) |
+---------------------------------------+----------------------------------------------------------------------------+
| setCost(mx, my, cost) | Set the cost (``np.uint8``) of a cell in the costmap using mx (``int``) |
| | , my (``int``) of Map Coordinate. |
+---------------------------------------+----------------------------------------------------------------------------+
| mapToWorld(mx, my) | Get the wx (``float``) [m], wy (``float``) [m] of world coordinate XY using|
| | mx (``int``), my (``int``) of map coordinate XY |
+---------------------------------------+----------------------------------------------------------------------------+
| worldToMap(wx, wy) | Get the mx (``int``), my (``int``) of map coordinate XY using |
| | wx (``float``) [m], wy (``float``) [m] of world coordinate XY |
+---------------------------------------+----------------------------------------------------------------------------+
| getIndex(mx, my) | Get the index (``int``) of the cell using mx (``int``), my (``int``) of |
| | map coordinate XY |
+---------------------------------------+----------------------------------------------------------------------------+

Examples and Demos
******************
Expand Down