-
Notifications
You must be signed in to change notification settings - Fork 38
COLOR TABLE new
rohan2689 edited this page Feb 24, 2012
·
8 revisions
After running dcm, vcm, test_walk, and test_vision:
- Since MATLAB isn't on the robot anymore- copy the nsl folder from the robot to your computer.
- Open MATLAB (on your computer) and go to ....../nsl/Lib/Util/Matlab/
- run the yuyvread command
- In Terminal, (while test_vision is running) press g to get the new yuyvread window to start, press it again for low resolution vision, press g again for higher resolution. Press g once more for the logging to begin. NOTE: While in the high resolution mode, go back to matlab and hit the LOG button in GUI for logging to begin and watch the logging info in the Command Window. Only when it reaches 100 does it actually save!
- The log gets saved when it reaches 100 and while it is logging use the keys A,D,W,and X to move the head around.
- Make sure it gets a good look at the ball and the goal post.
- Follow the other colortable wiki page and if there is an error when you click while setting colors- a. Go to colortable.m and change the resolution to 240X160 b. Then go to the colortable folder in terminal and say "make". NOTE: To find the resolution, type in size(LOG.camera(1).yuyv) after loading a log file.
- Create the color table and save the log(s) with a name, preferably including the date.
- use the "runner.m" function to create a .raw file that would be loaded on to the robot.
- ssh on to the robot and scp the file into the /Player/Data directory.
- Go to /Player/Config go check the config file that the colortable maps on to (the rest would be commented).
- Open that config file and change the name of the LUT file declared (at the very bottom).
NOTE:
- Go to UPennalizers/Lib
- make setup_op
- cd Platform/OP/Comm
- nano LuaOPMonitorCommWired.cc (to find out the right port num and IP)
- run dcm, cognition (not in Vision folder), and say "luajit run_monitor.lua"
- In MATLAB, say "startup" and then "MonitorNet".