Skip to content

NavCogTool_Help

Daisuke Sato edited this page Jun 21, 2018 · 1 revision

NavCogTool Help

Typical Usage

$ ./NavCogTool -c config.plist -p <lat>,<lng> -l en --list
EDITOR_node_1475139815917	xxx shop
EDITOR_node_1475141428068	yyy restaurant
...

$ ./NavCogTool -c config.plist -p <lat>,<lng> -l en \\
     -f EDITOR_node_1475139815917 \\
     -t EDITOR_node_1475141428068 2>&1 | grep speak
2018-05-22 14:32:22.700 NavCogTool[93019:8772219] speak_queue,120 meters to nursing room,
2018-05-22 14:32:22.718 NavCogTool[93019:8772219] speak_queue,proceed 8 meters, and turn right,
2018-05-22 14:32:22.919 NavCogTool[93019:8772219] speak_queue,approaching,Force
2018-05-22 14:32:23.018 NavCogTool[93019:8772219] speak_queue,turn right,Force
2018-05-22 14:32:23.136 NavCogTool[93019:8772216] speak,<play success sound>
2018-05-22 14:32:23.138 NavCogTool[93019:8772219] speak_queue,proceed 2 meters,
...
  • 2>&1 indicates redirect stderr output to stdout
  • | grep speak filters only lines including "speak"

Option Details

-h

Show help

-c <config plist file name>

Specify a config plist file which can be obtained from NavCog Advanced Setting > Setting Preset > Save Setting menu (see For Development for setting up NavCog as developer mode). You can see the saved plist file via iTunes file sharing view.

--list

Print all destinations around the point specified by -p option on the server specified by the config file (-c).

-f <destinationID>|<latlngfloor>

-t <destinationID>|<latlngfloor>

Specify the start point by -f and the destination by -e. You can use one of destination ID listed by --list option or a global point in <latitude>:<longitude>:<floor> format (ex. 12.345:12.345:0).

-p <latitude>,<longitude>

Specify the center position for search destinations on the server.

-d <distance>

Specify the radius of search area (default = 500 [meters])

-l <language_code>

Set language by 2 alphabet language code.

-o <output_file_name>

Set output file name, if not specified print to stdout.

Routing Options

1 = Use, 0 = Not use

--useStairs [1|0] stairs (default = 1)
--useEscalator [1|0] escalator (default = 0)
--useElevator [1|0] elevator (default = 1)
--useMovingWalk [1|0] movingWalk (default = 0)

1 = Prefer to use, 0 = Not use

--tactilePaving [1|0] tactile paving (default = 1)

Advanced

-u <string>

Set User ID (default=NavCogTool)

--filter <JSON hash>

Filter destinations if all key and value pairs in the JSON are exactly matched with the key and value in the property of destination GeoJSON feature.

--combinations

Print all combinations of destinations. This function is for testing all possible route in the environment whether the system can handle all situations.

--checkRemote [1|0]

set flag to check behavior of remote every step

--timeout <seconds>

set timeout in seconds (default = 60 [sec])

Clone this wiki locally