Repository navigation
Add 2D Profile sensor interface - #93
Conversation
|
cc @gbionics/team-argo @Luca0101 |
|
Great, minor comments:
|
| /** dinrail::StatusCode returned by IProfilometer2D::getProfile. */ | ||
| 1: i32 profile_status_code = 14; | ||
| /** dinrail::Profilometer2DStatus of the sensor, Unknown (5) by default. */ | ||
| 2: i32 sensor_status = 5; |
There was a problem hiding this comment.
I believe the dinrail::Status and ProfilometerStatus are inverted.
But is the sensor_status same as dinrail::Status?
There was a problem hiding this comment.
profile_status_code is the status returned by getProfile method, while sensor_status is the one returned by getProfilometer2DStatus. The status returned by getProfilometer2DStatus however is not transmitted. I don't know if it make sense to add it here or rework a bit the interfaces. I can try to review it.
|
Hi @traversaro, with 9790388 I have changed the wat the idl generated files are organized in folders. Let me know if it is ok. I did it because as the message is currently implemented, I am using the |
Ok for me. Can you fix the failing clang-format check? xref @S-Dafarra @RiccardoGrieco , eventually we can also provide a way to expose 2D profile sensors also as cameras, but I guess there are some functionalities independent from the camera world (such as switching on and off the laser) so it make sense to have them as independent device for now. |
It seems that the idl generated code is triggering the check, I guess we can exclude it from the clang-format check. |
Removed the idl files and formatted. |
|
Thanks, this is fine for me. @S-Dafarra @RiccardoGrieco I think this is a bit ortoghonal w.r.t. to the camera work, and even if eventually we may want to expose a subset of the profilometer 2d functionality in the camera interfaces, I would like to merge this to unblock the work related to that, any objections? |
No objections from me. I think it is safe to consider cameras and 2D profile sensors as two different sensors |
|
@lrapetti please let me know if you need a release/conda-forge package etc etc with these. |
If possibile it would be ideal |
Thanks, I would like to sort out the output type of Python bindings (xref #95 (comment)) and then we are ready to release for me. |
Adding interface to read and control 2D profile sensor. For now I am keeping the interface minimal considering the device we are using.
PR is in draft because I still need to review some code and the interfaces are still open to discussion. Anyway any feedback is welcome.