We use gazebo to simulate the kinect sensor. Is there any option to run the openni_tracker package without using the real sensor. When we try to run it
roslaunch openni_launch openni.launch load_driver:=false depth_registration:=true camera:=camera
rosrun openni_tracker openni_tracker
we have got the following error:
InitFromXml failed: Can't create any node of the requested type!
thank you all in advance
Related
I have problem using ros package aruco_detect. I am trying to show image with aruco markers in rviz but when i go add> by topic > /fiducial_images and select image i see only "no image" screen. The command i am using to call aruco_detect node:
rosrun aruco_detect aruco_detect /camera/compressed:=/usb_cam/image_raw/compressed /camera_info:=/usb_cam/camera_info
rqt_graph doesn't show /camera/compressed topic too.
I have checked rostopic echo /usb_cam/image_raw/compressed and it is publishing some data.
I am using ubuntu16.04 and trying to run opencv script.
when i use:
video_capture = cv2.VideoCapture(-1)
it gives me error VIDEOIO ERROR: V4L: can't find camera device
No video window opens
But when i run
video_capture = cv2.VideoCapture('test.jpg')
It opens window shows the picture and close the window.
Please tell me why it is not streaming video directly from camera.
The suggestion api55 gave in his comment
video_capture = cv2.VideoCapture(0)
is what I would try first.
Generally, you can list the available cameras with ls /dev/video* or v4l2-ctl --list-devices. Here sample output:
NZXT-U:rt-trx> v4l2-ctl --list-devices
Microsoft® LifeCam Cinema(TM): (usb-0000:00:14.0-1):
/dev/video1
Microsoft® LifeCam Cinema(TM): (usb-0000:00:1a.0-1.3):
/dev/video0
/dev/video0 corresponds to device id 0, etc.
PS: v4l2-ctl is quite useful for solving camera issues and can do much more than --list-devices. I installed it via packagev4l-utils on a 16.04 machine.
Late, but to get mine working i put in terminal:
-ltrh /dev/video*
To get a list of the video devices that are plugged into my computer. Then for each one I did:
sudo chmod 777 /dev/videox
Where x was one of the video files that were listed, giving everything access to them. Probaly not the most secure solution, but it got my code working.
I am trying to use kinect v2 with turtlebot and am following this tutorial. Everything works fine except when I enter the command
roslaunch kobuki_slam kobuki_slam.launch
This gives an error namely
[ERROR] [1509445234.825467518]: Error connecting to Hokuyo: Could not open serial Hokuyo: /dev/ttyACM0 # 115200 could not open serial device.
Do you have any idea why I might be getting this error?
Thanks!
I have been trying to run Hello World program on Iris mote in Cooja simulator. The hello-world.c is in /examples/hello-world/, the makefile is as given below.
CONTIKI_PROJECT = hello-world
all: $(CONTIKI_PROJECT)
#UIP_CONF_IPV6=1
CONTIKI = ../..
include $(CONTIKI)/Makefile.include
On typing
make program1.upload TARGET=iris MOTES=/dev/ttyUSB0
I get
make: *** No rule to make target `program1.upload'.
stop
The program runs on Skymote successfully.
I am using Contiki 2.7 currently.
Can anyone please guide me on how to run programs on Iris mote? In Motes--> Add Motes, the option for iris is not available. Please kindly arrange to provide the solution.
I need to work with asus xtion pro live to detect hand movements and objects. I am an amateur as far as it concerns programming this camera.
My problem is how to connect them and from where to start.
I work on Ubuntu 12.04. I've downloaded Ros fuerte and both Openni2 and OpenCV. When i plug the camera (usb port) and run the lsusb command, i see this:
"Bus 001 Device 003: ID 1d27:0601 "
Even when i run the command $ roslaunch openni_launch openni.launch
i get:
[ INFO] [1415717730.873978521]: No matching device found.... waiting for devices. Reason: openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) # /tmp/buildd/ros-fuerte-openni-camera-1.8.6/debian/ros-fuerte-openni-camera/opt/ros/fuerte/stacks/openni_camera/src/openni_device.cpp # 61 : creating depth generator failed. Reason: USB interface is not supported!
Can anyone please help? Is there a problem with the camera driver?
Thank you in advance.
you must go to a terminal and do
sudo nano /etc/openni/GlobalDefaults.ini
and there find UsbInterface and make sure it is not a comment (without ; at the beginning) and that is equal to 2
UsbInterface=2
I heard that this may give you problems with Kinect hardware (the same error you are getting now). But, if you use the Kinect later on and gives this problem, just comment it and it should work
;UsbInterface=2
You must reboot every time you change this value!!
I hope this works for you ;)