Closed davidegorbani closed 1 year ago
Hi @davidegorbani,
given the necessity to also have a depth camera in simulation, although not present on the real robot, the names of the two cameras are not dual to each other (you can find more details on the reasons in https://github.com/robotology/icub-models/issues/47 and https://github.com/robotology/icub-models/issues/44#issuecomment-664225199).
Therefore, the two ports to be used for the left and right images are:
/icubSim/cam/left/rgbImage:o
/icubSim/cam/right
respectively.
Let me know if this clarifies your doubts. Thanks
I just noticed that the assignment is making the assumption that the port /icubSim/cam/right/rgbImage:o
exists as well. Let me open an issue for that.
I will also open an issue on the fact that the port names for the rgb images between the robot and the simulated robot are different, this is definitely not something expected and even if we do not fix the problem immediatly, we can use that kind as documentation.
I will also open an issue on the fact that the port names for the rgb images between the robot and the simulated robot are different, this is definitely not something expected and even if we do not fix the problem immediatly, we can use that kind as documentation.
Ah, but we have that: https://github.com/robotology/icub-models/issues/47 .
Hi @xEnVrE,
it is clear now, thank you for your help.
After checking with @pattacini we realized that after the first release of the iCubGazeboV2_5_visuomanip
we had a follow-up PR for fixing such discrepancies and we decided to have similar port names, i.e.:
/icubSim/cam/left/rgbImage:o
/icubSim/cam/right/rgbImage:o
This change can be found in https://github.com/robotology/icub-models/pull/45/files#diff-1e5c2f03288ab12a5b18118bc44ed0d0096511a21c7c2e02fe851c185e3de101.
When updating the manual model such that it can support YARP 3.8.0
, see https://github.com/robotology/icub-models/pull/188, given that the wrappers and their configuration files used a different format and were created from scratch, this customization was lost. See specifically https://github.com/robotology/icub-models/pull/188/files#diff-e4397ef8e3fdcf273315c11bd778759f2352f511dbf53babc3c7b2b8284fa491.
Hence, I am opening a PR to restore the customization and have harmonized port names, although different from those of the real robot.
cc @traversaro @pattacini
While I was doing the assignment https://github.com/vvv-school/assignment_make-it-roll I spawned the
iCubGazeboV2_5_visuomanip
model in Gazebo and noticed that the port/icubSim/cam/right/rgbImage:o
corresponding to the right camera of the robot didn't open while the port/icubSim/cam/left/rgbImage:o
the camera corresponding to the left camera opened. I report the output ofyarp name list
.