ardrone_autonomy
ardrone_autonomy copied to clipboard
Custom Calibration Files
@mani-monaj Adding ticket as requested.
This will require adding support for setting ~camera_info_url parameter.
@mani-monaj I've added some basic parameter setting to allow custom calibration files.
I added parameters for the front camera (front_camera_info_url) and one for the bottom camera (bottom_camera_info_url). The only thing I'm not sure about is wether the parameter needs to be cleared at the end? Otherwise it will stay in the parameter server for the next execution of the driver.
Anyway, here is the diff file: https://gist.github.com/oscarmendezm/ac144761322d923d9429
Hi @oscarmendezm
I was trying to have a custom URL calibration file and copied the changes from your diff file. I compiled without erros, and I can see the new parameters when I do
rosparam list
But when I try rostopic echo /ardrone/bottom/camera_info
I dont get anything and still get, in orginal terminal where I launch ardrone_driver, the following message:
INFO] [1547741301.503619557]: using default calibration URL
[ INFO] [1547741301.503769421]: camera calibration URL: file:///home/hugo/.ros/camera_info/ardrone_front.yaml
[ INFO] [1547741301.503990334]: Unable to open camera calibration file [/home/hugo/.ros/camera_info/ardrone_front.yaml]
[ WARN] [1547741301.504080855]: Camera calibration file home/hugo/.ros/camera_info/ardrone_front.yaml not found.
Any particular reason you can see why this is happening?
Cheers, Hugo