reading vision sensor depth information

Typically: "How do I... ", "How can I... " questions
Post Reply
nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

reading vision sensor depth information

Post by nickstu »

Hello, i'm trying to retrieve the depth of a point in an image from a vision sensor.
I am using:

Code: Select all

topicName2 =simExtROS_enablePublisher('visionSensorData',1,simros_strmcmd_get_vision_sensor_depth_buffer ,visionSensorHandle,0,'')
but I get this message:

Code: Select all

rostopic echo /vrep/visionSensorData 
ERROR: Cannot load message class for [vrep_common/VisionSensorDepthBuff]. Are your messages built?

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

Re: reading vision sensor depth information

Post by coppelia »

Hello,

your code works fine here. What ROS version are you running? Can you try to rebuild the plugin?

Cheers

nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

Re: reading vision sensor depth information

Post by nickstu »

I am getting an error while trying to compile vrep_common. It seems like it doesnt find opencv, not sure what to do...

Code: Select all

/opt/ros/groovy/stacks/vrep/vrep_common$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmake  ..
[rosbuild] Building package vrep_common
Failed to invoke /opt/ros/groovy/bin/rospack deps-manifests vrep_common
[rospack] Error: package/stack 'vrep_common' depends on non-existent package 'opencv2' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'


CMake Error at /opt/ros/groovy/share/ros/core/rosbuild/public.cmake:129 (message):
  

  Failed to invoke rospack to get compile flags for package 'vrep_common'.
  Look above for errors from rospack itself.  Aborting.  Please fix the
  broken dependency!

Call Stack (most recent call first):
  /opt/ros/groovy/share/ros/core/rosbuild/public.cmake:203 (rosbuild_invoke_rospack)
  CMakeLists.txt:12 (rosbuild_init)


-- Configuring incomplete, errors occurred!
make: *** [all] Error 1 

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

Re: reading vision sensor depth information

Post by coppelia »

Mmmh, not sure, but I guess you have not correctly installed/configured ROS or one of its component?

Cheers

Post Reply