-
Notifications
You must be signed in to change notification settings - Fork 0
How to Take a Log
If you are having trouble streaming from a robot, make sure USE_MEMORY
is ON
, run make clean
in nbites/src/qtool
and do a hard restart of the robot. If all else fails, also try restarting your computer.
Turn on the robot you want to use and make sure you are connected to it. See Connecting to a Robot
cd into nbites/src/man
and type make atom
.
Most of the fields are correct already, but some need to be changed. Specifically,
@PYTHON_PLAYER@: pBrunswick
or pSnapshot
or whichever behavior you want
@REMOTE_ADDRESS@: <robot name>.local (e.g. mal.local)
@ROBOT_NAME@: <robot name>
CMAKE_BUILD_TYPE: release
COLOR_TABLE: <path to your color table file> (usually in ../../data/tables
)
USE_MEMORY: ON
Run make install
. Usually you will want to add -j
to make it go faster (or -j<number of threads>
).
This will take a while the first time you run it, but subsequent installs will be faster.
If you are experiencing problems, try running make clean
to delete the saved settings.
Open a secure shell on the robot by running ssh nao@<robot address>
(e.g. ssh [email protected]
).
In the shell, run nao restart && naolog
(naolog
will have the robot print output from behavior)
Once it has stopped printing, you know it is done restarting.
The robot needs to switch states from initial → ready → set → playing, so press the chest button three times. It should say "Chase normal" when it is in the correct state. Also make sure you kill stiffnesses by tapping the chest button twice.
cd into nbites/src/qtool
and make run -j
Click on the Data Loader tab, and click on the robot you want to stream from. Then click on Log Viewer to verify it is working. Then go back to Data Loader and click on Rec
on the top bar. It will open a window that shows your data/logs
folder. Click on Create Folder
, name it, then click Open
. The QTool will then be recording.
Aim the camera around to capture what you want. After you are done, click on the Stop
button that replaced Rec
.
If you want to make the log available to the team, cd into the data/logs/ directory. Run ./sync up folderName/
and the script will take care of the rest. In order to get someone's logs, run the script ./sync down folderName/
. Both scripts will prompt you for your Bowdoin username and password.