camera_calibration for monocamera
when I use this commend to calibrate my monocamera , i got the folling problem. Itried to find answer in the internet. but it seems like nobody had ever happend. so please..
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/usb_cam_node/image_raw camera:=/usb_cam_node
Traceback (most recent call last):
File "/home/jiaxing/catkin_ws/src/image_pipeline/camera_calibration/nodes/cameracalibrator.py", line 40, in <module>
from camera_calibration.camera_calibrator import OpenCVCalibrationNode
ImportError: No module named camera_calibration.camera_calibrator
Asked by Jiaxing on 2018-07-03 05:25:30 UTC
Answers
You should check the topic before write command.
if you are using usb_cam package then it publishes the image on usb_cam/image_raw
.
Change your command as given below.
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/usb_cam/image_raw camera:=/usb_cam
Asked by simbha on 2018-07-03 06:41:06 UTC
Comments
hi Thanks for your reply. the rostopic list is correct (i think):
jiaxing@jiaxing-HP-ENVY-15-Notebook-PC:~$ rostopic list
/rosout /rosout_agg /usb_cam_node/camera_info /usb_cam_node/image_raw
Asked by Jiaxing on 2018-07-03 06:44:09 UTC
is there any warning/error after the command?
Asked by simbha on 2018-07-03 06:46:29 UTC
no warnung with this commend. after I run the following commend,
roslaunch usb_cam usb_cam-test.launch
Ican see the camera light is turned on. but tehre is no window open to see the image from the camera. IN the terminal shows the following respond
[swscaler@0x1cb9620] deprecated pixe...
Asked by Jiaxing on 2018-07-03 09:14:37 UTC
Is the camera correctly turned on?
Asked by Jiaxing on 2018-07-03 09:15:41 UTC
please check your camera using cheese
Asked by simbha on 2018-07-03 12:32:56 UTC
Comments
I have the same problem,could you tell me How did you solve it?
Asked by bob1729 on 2020-09-01 04:31:10 UTC
@bob1729 I've reposted your answer as a question comment. This is a Q&A site, not a discussion forum. Please do not post answers that aren't actually answers. If you have follow-ups use comments or ask a new question. See more on the support page: http://wiki.ros.org/Support
Asked by jarvisschultz on 2020-09-01 09:07:12 UTC