

nyoo wrote:hi everyone,
btw do anyone know how to display the output value (ex: index, colors, pixel, MaxX, MaxY, etc) of the objects that have been calibrated (using program provided in this forum) by havimo 2???
nyoo wrote:and, do anyone know how to use the file "camerareg15.txt" that is made by havimo color calibration program???
btw, i want to program my robot with that sensor using roboplus...
 I'm not sure if you can re-import that text file, I was just tweaking individual registers one at a time and testing the results.
 I'm not sure if you can re-import that text file, I was just tweaking individual registers one at a time and testing the results.
garycmartin wrote:Hi nyoo,nyoo wrote:hi everyone,
btw do anyone know how to display the output value (ex: index, colors, pixel, MaxX, MaxY, etc) of the objects that have been calibrated (using program provided in this forum) by havimo 2???
I've only been using one index colour so far (tracking a single red ball), but for the bounding box data (the sample code returns the largest one found for a given index colour) I just added some print statements into the Task script.nyoo wrote:and, do anyone know how to use the file "camerareg15.txt" that is made by havimo color calibration program???
btw, i want to program my robot with that sensor using roboplus...
I think this is just a quick way to dump out all the register settings in one go so you can more easily examine them when fine-tuning the camera to your needs (need to reference the camera spec sheet to get all the gruesome details about which registers do what). For example I was certainly tweaking things to try and improve sensitivity in low light conditions, though brighter room lighting would be a more reliable solutionI'm not sure if you can re-import that text file, I was just tweaking individual registers one at a time and testing the results.
--Gary
garycmartin wrote:Here's a ziped RoboPlus Task file showing a very simple HaViMo2 pan and tilt setup for looking towards the colour defined in palette 1 (I stripped down the camera2.tsk file provided by hamid_m and tinkered with it on a CM-510). Servo ID 19 was pan and ID 20 was tilt. It prints out a few values I was using for debugging. 1) Camera address [*] 2) Bounding box Max size (I was tinkering with the idea of ignoring values below a certain size) 3) the bounding box x centroid 4) the bounding box y centroid. Hope it's of some use:
http://robosavvy.com/Builders/garycmart ... st.tsk.zip
[*] if you loop the script too fast (see the WAIT WHILE time loop of 0.256sec), the camera returns errors rather than data, I was using this camera address read as minimal test case while tweaking the delay.
--Gary
nyoo wrote:where is the output data of the object printed anyway?? robot terminal or havimo software, or?
 
 

 ) i see on the havimo calibration program that my camera is not found.....but, before that problem occured, my havimo worked very well...and also i found no problem on my usb2dynamixel because it could be used to connect to other robotis devices...... btw, what is the problem that occurs on my havimo now actually????
 ) i see on the havimo calibration program that my camera is not found.....but, before that problem occured, my havimo worked very well...and also i found no problem on my usb2dynamixel because it could be used to connect to other robotis devices...... btw, what is the problem that occurs on my havimo now actually????
 
luisgiii wrote:Hi, we are working with the Havimo 1.5 and with the CM-510, we know the example is for CM-5 somebody change the example to work with the CM-510 ? or which are the main differences between both modules ?
Thanks !.
garycmartin wrote:nyoo wrote:where is the output data of the object printed anyway?? robot terminal or havimo software, or?
I use RoboPlus Task, when you download a script to the robot the 'download complete' dialogue has two buttons, one is OK, the other is show output. There is also a show output icon in the toolbar. Just make sure you have the window open first, and leave the serial cable connected, before you run the program on the robot. If you're still stuck have a look at the RoboPlus Task help/manual, pretty sure the first example code it gives is how to write a script that just prints Hello World to the output.
--Gary