Kinect Color Camera error

Typically: "How do I... ", "How can I... " questions
Post Reply
formica
Posts: 60
Joined: 13 Mar 2013, 12:13

Kinect Color Camera error

Post by formica »

Hi everybody,
I'm getting a strange error using the ColorCam inside the Kinect Sensor. I can't publish the images through ros.
Using this code snippet:

Code: Select all

topicName=simExtROS_enablePublisher('visionSensorDepthData',1,simros_strmcmd_get_vision_sensor_depth_buffer,depthCam,0,'')
	topicNameColor=simExtROS_enablePublisher('visionSensorColorCam',1,simros_strmcmd_get_vision_sensor_image,colorCam,0,'')	
I got this error:

Code: Select all

Lua call error: [string "SCRIPT kinect"]:12: Topic could not be published. (simExtROS_enablePublisher)
The Depth Image, on the contrary, is correctly sent.

Any ideas?

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Kinect Color Camera error

Post by coppelia »

Hello,

before going into this further:

This error can be generated for 2 main reasons:
  • simros_strmcmd_get_vision_sensor_image is invalid or has an invalid number (improbable)
  • colorCam is not a vision sensor. Be careful, a camera is different from a vision sensor. You can only read a vision sensor's buffers.
Cheers

Post Reply