|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
Quote:
For now, works perfectly on the MXP, thanks again! |
|
#2
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
I might get one of these to poke around with. Our programming team is talking crazy talk for autonomous, and I don't know that the drive train will have quite the precision they require to squeak in under 15 seconds.
Anyone tried this out on diamond plate? I bet more than my team has felt a twinge of failure with ultrasonics when moving from the lab to the field. |
|
#3
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
The raised diamonds on the diamond plate caused excessive backscatter with the sonar sensor. A better way to put the question is, do the diamond shapes cause the Lidar laser to reflect/refract as the robot moves down the wall next to the diamond plate? If so, is it momentary and how long does it take to recover?
|
|
#5
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Quote:
|
|
#6
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
Quote:
https://decibel.ni.com/content/thread/26778 |
|
#7
|
||||||
|
||||||
|
Re: LIDAR Sensor has arrived!
Can you try in C++ as well (either the accelerometer or the LIDAR). Java and C++ share a lot of code, and that might help pinpoint where the issue is.
|
|
#8
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Verified to have the same error.
|
|
#9
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
We picked up one of these... it seems very sensitive to glossy/reflective surfaces. Much more so than the lidar system we yanked from a Neato vacuum robot. Not sure what others are seeing. We haven't dived into the sample code yet beyond running it.
|
|
#10
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
We have 2 of these and played with them today with LabVIEW. We have been unable to get them to work with the native I2C port on the roborio. However, we have them working just fine on the MXP expansion I2C with identical code. We've pinned them out, swapped the lasers themselves, and still have zero luck with the native port.
The native port DOES know the sensor is connected. We received read and read/write errors stating that the device is busy. This is different that the 'resource not found' error we get when the device is not plugged into to power or not plugged into the I2C. On the MxP I2C port we are reading then writing in alternating 20 ms loops. We lowered the timing of these loops incrementally until we started getting errors. At 10 ms polling we receive all zeros, at 15 ms we receive data, so 20 ms is where we are (50 hz). We average 5 loops in a moving average filter and the data looks very good. I know we can improve this by doing the write then checking for the ready bit, but this worked just as well and gave us a resolution we're happy with. Plus after 6 hours of banging our head against the native port we were already pretty frustrated. We have noticed that when the sensor was aiming at the ceiling and our flourescent lights we got highly inaccurate results. |
|
#11
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
How would one program the LIDAR Sensor for use via DIO in Java?
|
|
#12
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
I don't know that you can. It's designed to work via PWM output or I2C. The I2C implementation should be pretty similar to the arduino example on their website. The PWM setup will likely just be reading analog input values but don't quote me on that.
|
|
#13
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Two possible methods:
I plan on eventually writing up a pwm based class due to the problems teams have had with this sensor and the onboard i2c port. |
|
#14
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
What port in Linux are you referring to? What is the dev path you are using?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|