Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RGBDSensorWrapper example fails to run becasue fakeDepthCamera needs to implement yarp::dev::FrameGrabberControls #1875

Closed
traversaro opened this issue Sep 25, 2018 · 3 comments
Assignees
Labels
Affects: YARP v3.1.0 This is a known issue affecting YARP v3.1.0 Component: Devices Fixed in: YARP v3.1.1 Issue Type: Bug Involves some intervention from a system administrator Resolution: Fixed

Comments

@traversaro
Copy link
Member

Describe the bug
The command described in https://github.com/robotology/yarp/blame/b7983c941952a3aafa7de7dd4aeeb574c1865799/example/dev/RGBD/README.md#L21 :

yarpdev --device RGBDSensorWrapper --name /server --subdevice fakeDepthCamera --mode ball 

is failing with the following error:

straversaro@iiticublap103:~/src/idjl-superbuild/build3/idjl/YARP$ yarpdev --device RGBDSensorWrapper --name /server --subdevice fakeDepthCamera --mode ball 
[INFO]RGBDSensorWrapper: using default 'period' parameter of  0.03 s 
[INFO]RGBDSensorWrapper: ROS configuration parameters are not set, skipping ROS topic initialization. 
yarp: Port /server/rpc:i active at tcp://192.168.1.10:10007/
yarp: Port /server/rgbImage:o active at tcp://192.168.1.10:10008/
yarp: Port /server/depthImage:o active at tcp://192.168.1.10:10009/
[DEBUG]opening IRGBDSensor subdevice
[INFO]Test grabber period 0.0333333 / freq 30 , mode [ball]
[INFO]created device <test_grabber>. See C++ class yarp::dev::TestFrameGrabber for documentation.
[INFO]created device <fakeDepthCamera>. See C++ class yarp::dev::fakeDepthCameraDriver for documentation.
[ERROR]RGBD wrapper: error configuring interfaces for parsers 
[ERROR]RGBDSensorWrapper: error while opening subdevice
yarpdev: ***ERROR*** driver <RGBDSensorWrapper> was found but could not open
[ERROR]yarpdev: ***ERROR*** device not available.
[INFO]Suggestions:
[INFO]+ Do "yarpdev --list" to see list of supported devices.
[INFO]+ Or append "--verbose" option to get more information.

Expected behavior
The one described in the tutorial.

Configuration (please complete the following information):

  • OS: Ubuntu 18.04
  • yarp version: current devel
  • compiler: Gcc 7.3
@traversaro traversaro changed the title RGBDSensorWrapper example fail to run RGBDSensorWrapper example fails to run Sep 25, 2018
@PeterBowman
Copy link
Member

fakeDepthCamera needs to implement yarp::dev::FrameGrabberControls. yarp::dev::RGBDSensorWrapper expects this interface in its subdevices since YARP 2.3.72.1.

@traversaro
Copy link
Member Author

Thanks @PeterBowman .

@traversaro traversaro changed the title RGBDSensorWrapper example fails to run RGBDSensorWrapper example fails to run becasue fakeDepthCamera needs to implement yarp::dev::FrameGrabberControls Sep 25, 2018
@Nicogene Nicogene added Issue Type: Bug Involves some intervention from a system administrator Component: Devices Affects: YARP v3.1.0 This is a known issue affecting YARP v3.1.0 labels Sep 25, 2018
@Nicogene
Copy link
Member

fakeDepthCamera needs to implement yarp::dev::FrameGrabberControls.

@aerydna and me noticed this bug yesterday and it can be easily fixed simply adding the interface and the respective methods with {return false} implementation or making this interface optional for the open of the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: YARP v3.1.0 This is a known issue affecting YARP v3.1.0 Component: Devices Fixed in: YARP v3.1.1 Issue Type: Bug Involves some intervention from a system administrator Resolution: Fixed
Projects
None yet
Development

No branches or pull requests

3 participants