When I access a prosilica GigE camera over PvAPI *not* within an orocos component, I can successfully open the camera and get/set attributes.
Copying the same code into the constructor, configuration or start hook of an orocos component, I successfully can open the camera, but I can not get/set attributes.
The system is a x64 Intel, Ubuntu 10.04.
A function call for setting an attribute has the following signature:
tPvErr PVDECL PvAttrUint32Get(tPvHandle Camera, const char* Name, tPvUint32* pValue);
where tPvErr is an enum, tPvHandle is of
typedef void* tPvHandle;
The function returns an error code 6, which means "Camera or attribute not found".
Since I can open the camera successfully (I can read out model number) I really don't know what the problem might be.
Does the PvAPI not work properly when called from an orocos component?
Best, Dani
Re: Prosilica PvAPI: can't get/set attributes
Copying the same code into the constructor, configuration or start hook of an orocos component, I successfully can open the camera, but I can not get/set attributes.
The system is a x64 Intel, Ubuntu 10.04.
A function call for setting an attribute has the following signature:
where tPvErr is an enum, tPvHandle is of
The function returns an error code 6, which means "Camera or attribute not found".
Since I can open the camera successfully (I can read out model number) I really don't know what the problem might be.
Does the PvAPI not work properly when called from an orocos component?
Best, Dani
well, I probably should have mentioned that. I am a ROS-user, and I'm using the orocos-toolchain-ros. Now I installed the orocos-toolchain (I removed ROS_PATH (...)) from bashrc and have actually a non-ros installation.
Using *orocos-toolchain* it's working from beginning (lua not tested). So there must somewhere be an issue with the orocos-toolchain-ros!
I'm happy to be able to work with the camera :)