lardemua / atlascar2

Core packages for the LAR DEMUA Atlas Project
6 stars 1 forks source link

Test of the point grey flea 2 camera #22

Closed Sarxell closed 2 years ago

Sarxell commented 2 years ago

Olá @vitoruapt e @miguelriemoliveira , Dificuldades e progressos no teste da câmara.

Sarxell commented 2 years ago

Boa tarde professores, Sobre a camera deu-me o seguinte erro ( depois de ter instalado os drivers):

Screenshot from 2021-12-13 18-01-54

Neste caso eu encontrei que podem ter dado update aos launch files e isto já não ser necessário, eu comentei e consegui colocar o launch file a correr. No entanto deu-me outro erro: Screenshot from 2021-12-13 18-09-12

Eu utilizei o comando : rosrun pointgrey_camera_driver list_cameras o qual nao detetou nenhuma camera, pode ser uma das razões para este problema

miguelriemoliveira commented 2 years ago

Olá @Sarxell ,

quanto à formatação, o mesmo comentário que em #21 .

Como são câmaras ethernet faço a mesma pergunta: qual é o ip da câmara, o seu ip e se consegue fazer ping.

Sarxell commented 2 years ago

Exatamente igual ao que acontece no lidar, eu já tentei mudar o ip estático, mas como ainda só tinha feito isso no windows posso ter mudado de maneira errada

Sarxell commented 2 years ago

After using mode 0 in the camera and changing a little the values in the camera settings it finally worked Screenshot from 2021-12-16 16-36-32

It has a warning that says: Default Linux receive buffer setting is lower than expected I still need to test with rviz and try to change the packet resend and size because the frame rate is very slow

miguelriemoliveira commented 2 years ago

Ok, also good news. Can you document the procedure? Does it work always?

Sarxell commented 2 years ago

I tried this method three or four times and it worked all of them. The procedure was:

  1. Before opening the flycap camera, use the terminal
  2. Write the command roslaunch pointgrey_camera_driver camera.launch packet_resend:=false to launch the camera
  3. Stop roslaunch
  4. Open the flycap camera and the camera is working
miguelriemoliveira commented 2 years ago

OK, thanks.

Sarxell commented 2 years ago

Hi @miguelriemoliveira ,

Today decided to test the cameras in rviz, with that I had to resolve the following error:

[ERROR] [1512118059.821921194]: Reconfigure Callback failed with error: PointGreyCamera::SetGigEConfig could not set GigE settings (packet resend) | FlyCapture2::ErrorType 7 Packet resend is not supported.

I found that it envolved the PointGreyCamera.cpp in these lines:

        gigeconfig.enablePacketResend = true;
        error = cam.SetGigEConfig(&gigeconfig);
        PointGreyCamera::handleError("PointGreyCamera::SetGigEConfig could not set GigE settings (packet resend)", error);

I changed the gigeconfig.enablePacketResend value to false. The error disappeared and rviz and rqt_image_view started working Screenshot from 2022-01-18 15-48-18 Screenshot from 2022-01-18 15-49-18

I will try to update today the readme in more detail.

Sarxell commented 2 years ago

Olá @miguelriemoliveira ,

Right now I'm testing the atlascar2 cameras. As it can be seen in the photo below they are working in the spinview api Screenshot from 2022-03-21 15-50-48

But in the flycap api they don't work Screenshot from 2022-03-21 15-55-33

Right now there exists a new driver for the cameras that its this one: http://wiki.ros.org/spinnaker_sdk_camera_driver

With only one camera connected, the flycap works well, but with more than one I can ping, see them in the spinview but not in the flycap

I can try create a new launch file using the spinnaker driver and see if they work better than with the flycapture

A note: when I use updatorgui to force the IP the cameras start working but one of them disappears, looks like the node merges and we can't see the image

miguelriemoliveira commented 2 years ago

Hi @Sarxell ,

if it works all the time with our launch files I don't care that it does not work well with flycapture ...

Sarxell commented 2 years ago

The problem is that when I run the launch files, it appears the same error that in the flycapture, that it doens't find any cameras... But using the spinview everything looks fine, that's my confusion... When I'm only using one camera it worked on both as well as with the launch files... Tomorrow I will try it again and give an update

Sarxell commented 2 years ago

Hi @miguelriemoliveira , So it was my bad , one of the cameras had a mask of the persistent Id of 255.255.0.0 which doesn't work, so I went to windows and I configured the right mask in that camera and now it's working

miguelriemoliveira commented 2 years ago

Great!

On Tue, Mar 22, 2022, 11:09 SaraPombinho @.***> wrote:

Hi @miguelriemoliveira https://github.com/miguelriemoliveira , So it was my bad , one of the cameras had a mask of the persistent Id of 255.255.0.0 which doesn't work, so I went to windows and I configured the right mask in that camera and now it's working

— Reply to this email directly, view it on GitHub https://github.com/lardemua/atlascar2/issues/22#issuecomment-1075036912, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWTHVWO46LGCOGFR72U4F3VBGS7RANCNFSM5JZFFJTA . You are receiving this because you were mentioned.Message ID: @.***>