-
Hi, I've come up with my solution to the The What resources do I need? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
@Arya07 @Iaxama @gmmarconi @massimoregoli @towardthesea @giuliavezzani |
Beta Was this translation helpful? Give feedback.
-
While the yarplogger does not have any dependency, all of the other modules depend on the iCubSim to be up and running to start. Try to run iCubSim from a terminal and check that you can run it properly, then try again. |
Beta Was this translation helpful? Give feedback.
-
Ok, now it works. I have also sent rpc command to the robot, in this way the robot look down. |
Beta Was this translation helpful? Give feedback.
-
You can use the getCog method provided in the main.cpp to get the center of the ball in the two images. Then you have to write the code to fixate at that point (Hint: use the IGazeControl to do that) |
Beta Was this translation helpful? Give feedback.
-
No ok, I already use getCog and IGazeControl in the code, but when I run it the robot looks forward. |
Beta Was this translation helpful? Give feedback.
-
For the getCog method to work the ball should be in the visual range of the cameras. The robot has to look down towards the table first, then get the ball position in the two images with the getCog method, then you need to retrieve the ball position using the iGazeControl.triangulate3dPoint method, then ask the robot to approach the ball position with the hand and push it. |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks! |
Beta Was this translation helpful? Give feedback.
-
Closing for now; feel free to open it again if needed. |
Beta Was this translation helpful? Give feedback.
While the yarplogger does not have any dependency, all of the other modules depend on the iCubSim to be up and running to start. Try to run iCubSim from a terminal and check that you can run it properly, then try again.