Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any data from any of the scan topics #1

Closed
milano-technical-intern opened this issue Sep 27, 2019 · 23 comments
Closed

Not getting any data from any of the scan topics #1

milano-technical-intern opened this issue Sep 27, 2019 · 23 comments
Labels
bug Something isn't working

Comments

@milano-technical-intern

Hi,

I'm not getting any data from any of the scan topics, i.e, by executing rostopic echo /r2300_node/scan_0 or by trying to visualize them using RViz. I'm not getting any error either when executing the launch file so, I'm not sure what is happening. I'm using the default values:

SUMMARY

PARAMETERS

  • /r2300_node/frame_id: /scan
  • /r2300_node/major_version: 0
  • /r2300_node/samples_per_scan: 500
  • /r2300_node/scan_frequency: 100
  • /r2300_node/scanner_ip: 10.0.10.76
  • /rosdistro: melodic
  • /rosversion: 1.14.3

NODES
/
r2300_node (pf_driver/r2300_node)

and these are the topics I'm getting:

/r2300_node/scan_0
/r2300_node/scan_1
/r2300_node/scan_2
/r2300_node/scan_3
/rosout
/rosout_agg

By the way, I'm able to ping the R2300 with no problems. Here is a picture of the status of the LEDs.

Best,

@ptruka
Copy link
Contributor

ptruka commented Sep 30, 2019

Hello,

a quick question to start: Which hardware version are you using?

Best Regards

@milano-technical-intern
Copy link
Author

milano-technical-intern commented Sep 30, 2019

This is what it says on the label that is on the R2300:

HW: 0.608
FW: 0.70

Best,

@hsd-dev
Copy link
Contributor

hsd-dev commented Oct 1, 2019

@milano-technical-intern could you please pull the latest master and try again?

@milano-technical-intern
Copy link
Author

@ipa-hsd I did, and I'm still having the same issue: no data from any of the scan topics. Have you updated the master @ipa-hsd? In the repository, it reads "Latest commit adff7b9 13 days ago"

Best,

@hsd-dev
Copy link
Contributor

hsd-dev commented Oct 7, 2019

@milano-technical-intern yes I have updated the master branch. Have you made sure the device is in working condition? Probably just pinging it may not be enough. @ptruka is there any Windows software where he can test the device?

@milano-technical-intern
Copy link
Author

milano-technical-intern commented Oct 8, 2019

@ipa-hsd I just tested it out in the Windows 10 program. It works. I can see all four layers. The problem persists on the ROS driver. I'm not getting any data. Do you know what indicates each LED in the R2300? It seems that in the ROS program is not establishing connection with the R2300. As you can see in this picture, the orange LED keeps blinking when using the ROS driver. On the other hand, when using the Windows program is not blinking but on all the time.

Best,

@milano-technical-intern
Copy link
Author

Nevermind. I just got the manual where it describes the indicators.

The PC where I'm testing the R2300 doesn't have WiFi. Therefore, when I connect to the R2300 is by Ethernet only. I've tried with a network switch and directly connecting the R2300 to the computer but none of them worked.

@hsd-dev
Copy link
Contributor

hsd-dev commented Oct 10, 2019

I have connected the device directly to my computer with Ethernet. Could you try that without using the network switch?

@hsd-dev hsd-dev closed this as completed Oct 10, 2019
@milano-technical-intern
Copy link
Author

I'm getting the same result with or without the network switch. I even tried with another computer and it's the same.

Best,

@milano-technical-intern
Copy link
Author

@ipa-hsd by the way, I cannot reopen the issue because I'm not a collaborator since you closed it.

https://stackoverflow.com/questions/21333654/how-to-re-open-an-issue-in-github

@hsd-dev hsd-dev reopened this Oct 11, 2019
@hsd-dev hsd-dev added the enhancement New feature or request label Oct 15, 2019
@hsd-dev
Copy link
Contributor

hsd-dev commented Oct 15, 2019

I will try to implement SSDP within the driver, that might solve the issue.

@milano-technical-intern
Copy link
Author

milano-technical-intern commented Oct 17, 2019

@ipa-hsd Have you tried to use the driver in a freshly installed Ubuntu 18.04 and ROS melodic? Maybe you can replicate the issue I'm having by doing that.

Best,

@YangAndI
Copy link

I have the same problem.
Infinite loop
data_notifier.wait_for(lock, std::chrono::seconds(1));
because the scans is empty
best

@YangAndI
Copy link

And the led is only three,the first is green and the last is green,and the second to last is flashing yellow light.
Best,

@hsd-dev
Copy link
Contributor

hsd-dev commented Oct 18, 2019

@YangAndI and @milano-technical-intern is the scanner's IP 10.0.10.76 and your host PC's IP 10.0.10.1?

@milano-technical-intern
Copy link
Author

milano-technical-intern commented Oct 18, 2019

@ipa-hsd Actually, It worked by changing the host PC's IP to 10.0.10.1

That makes me wonder, is it possible to change the IP to be another one under the subnet 255.0.0.0? For example, I tried with 10.0.10.75, and it didn't work. The reason is that address is normally reserved for the default gateway.

Thanks!

Best,

@YangAndI
Copy link

@ipa-hsd Thanks,it is worked by changing the IP to 10.0.10.1.
May i change the sensor ip or host ip?

@milano-technical-intern
Copy link
Author

@ipa-hsd Any particular reason why it doesn't work for any other address in the subnet but 10.0.10.1? If I send HTTP commands like this one:
http://10.0.10.76/cmd/set_parameter?pilot_laser=on
it works for any address in the subnet.

Best,

@hsd-dev
Copy link
Contributor

hsd-dev commented Nov 11, 2019

Sorry for the delay. Can you test with the latest master?

@hsd-dev hsd-dev added bug Something isn't working and removed enhancement New feature or request labels Nov 11, 2019
@milano-technical-intern
Copy link
Author

Sorry for the delay. Can you test with the latest master?

Still not working with other ip address other than 10.0.10.1

@hsd-dev
Copy link
Contributor

hsd-dev commented Nov 28, 2019

Make sure your IP is has a subnet of 10.0.10.*
I cannot reproduce this error from my side anymore.

@bk-mtg
Copy link
Contributor

bk-mtg commented Dec 5, 2019

@ipa-hsd I work with @milano-technical-intern, and I just finished testing that this appears to be working now for us. We even verified that we are able to change the IP/subnet on the device (as expected) and the driver works on the new subnet (assuming appropriate host IP config obviously).

I assume this was addressed in c176058? Thanks for the help with this!

@hsd-dev
Copy link
Contributor

hsd-dev commented Dec 6, 2019

Good to know it works!

mbeutelspacher pushed a commit to mbeutelspacher/pf_lidar_ros_driver that referenced this issue Aug 15, 2024
use port declared in configuration to establish connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants