nxt_ar_toolkit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
nxt_ar_toolkit [2017/07/17 03:12] – dwallace | nxt_ar_toolkit [2017/07/17 03:13] (current) – [Step 8: Using Multiple Markers for Localization and Navigation] dwallace | ||
---|---|---|---|
Line 230: | Line 230: | ||
==== Step 8: Using Multiple Markers for Localization and Navigation ==== | ==== Step 8: Using Multiple Markers for Localization and Navigation ==== | ||
- | In order to track the position of a robot or other vehicle using the ARToolkit, we will need to create an algorithm that creates relative coordinates for the robot based off of a known location of a stationary marker. This will allows us to create a kind of coordinate system that is independent of camera position or resolution. In order to do this, we will need to use one barcode marker (in most cases this will be number 0) fixed to a stationary location, and then reference this location in our code to get relative distances. | + | In order to track the position of a robot or other vehicle using the ARToolkit, we will need to create an algorithm that creates relative coordinates for the robot based off of a known location of a stationary marker. This will allows us to create a kind of coordinate system that is independent of camera position or resolution. In order to do this, we will need to use one barcode marker (in most cases this will be number 0) fixed to a stationary location, and then reference this location in our code to get relative distances. |
if ((xCoord[0] != 0) && (yCoord[0] != 0) && (xCoord[h] < 1000) && (yCoord[h] < 1000) && (xCoord[h] > -1000) && (yCoord[h] > -1000)) { | if ((xCoord[0] != 0) && (yCoord[0] != 0) && (xCoord[h] < 1000) && (yCoord[h] < 1000) && (xCoord[h] > -1000) && (yCoord[h] > -1000)) { |
nxt_ar_toolkit.txt · Last modified: 2017/07/17 03:13 by dwallace