Page 1 of 1
reading vision sensor depth information
Posted: 13 Mar 2014, 16:36
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?
Re: reading vision sensor depth information
Posted: 14 Mar 2014, 10:50
by coppelia
Hello,
your code works fine here. What ROS version are you running? Can you try to rebuild the plugin?
Cheers
Re: reading vision sensor depth information
Posted: 17 Mar 2014, 09:49
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
Re: reading vision sensor depth information
Posted: 17 Mar 2014, 23:25
by coppelia
Mmmh, not sure, but I guess you have not correctly installed/configured ROS or one of its component?
Cheers