-
Notifications
You must be signed in to change notification settings - Fork 440
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
mapping in python #542
Comments
Hello! How exciting! Anything you're looking to do in particular? Barring any details, it might be useful for you to look at the code that powers the ouster-cli mapping features -- it's leveraged atop the kiss-icp library.
|
Yes we are a group of research in forest ecology who are using TLS. we are interested to build a point cloud (slam) with the ouster scanner and addind all channel (reflectivity, ambient, etc.) on a registered point cloud. Thank you |
Hello Pascal, To generate a slam processed OSF file, you can execute the ouster-cli mapping slam command using either a live sensor feed or a recorded pcap file. I would recommend using a recorded pcap file for testing purposes. Here's an example command you can use: We intentionally do not save data from all channel fields to avoid doubling the file size, as an oversize file could lead to potential application crashes. Is it acceptable for you to use the command provided above to test all available channels? Once you identify the most suitable channel, you can choose one of them as the desired output. |
Hello, Thank you for the advice you provided me. I used the command 'ouster-cli mapping slam sample.pcap viz', and it works wonderfully. However, I would like to go much further in using your various scripts from the Ouster SDK. import mapping_pascal as mappeur
pcap ='C:\\Users\\Administrateur\\Documents\\ouster\\OS-0-128_v3.0.1_1024x10_20230216_172749-000.pcap'
json = 'C:\\Users\\Administrateur\\Documents\\ouster\\OS-0-128_v3.0.1_1024x10_20230216_172749.json'
mappeur.run_slam(source=pcap, viz='', meta=json, slam_name='kiss_slam', lidar_port= 7502, imu_port= 7503, output='out.osf') After some processing time, I receive this error: I've checked and added a counter within the 'slam_scans_generator' function, and when it reaches scan 1013, that's when I receive the error. If I stop the loop at scan 1012, the OSF file is created correctly and can easily be converted to a PLY file. def slam_scans_generator(scan_source, slam, osf_writer):
aa= 0
for scan in scan_source:
if aa == 1012:
break
scan_slam = slam.update(scan)
scan_ts = client.first_valid_column_ts(scan_slam)
osf_writer.write_scan(scan_ts, scan_slam)
yield scan_slam
aa =aa +1
print(aa)
osf_writer.close() Do you have any idea what might be causing this error? And how to resolve it? |
We can valid the source pcap file first |
Hello, indeed I tested the file using the command line
This is a sample file downloaded directly from the website (https://ouster.com/resources/lidar-sample-data/os-sample-data/). So, I downloaded the other sample files from the OS0 sensor as well. Here are the ones that work (without error) and the ones that give me the same error code. OS-0-128_v2.3.0_1024x10_20220419_153621-000.pcap
In the same way I try the second command 'ouster-cli --traceback source OS-0-128_v3.0.1_1024x10_20230216_172749-000.pcap viz`, and it stop with this error:
I verify if all the sample file work with this second command line and the results are same than the previous table. My own files not working too with the same error. Do you have an idea how to solve that? At first glance, I notice that the larger files are not working. Is this a coincidence? I've checked if my computer's memory and processors are getting saturated during execution, but that's not the case. |
Hi Pascal, Thanks for your patience with this issue. I apologize for delaying response to your inquiry. I'm not able to replicate the issue you're experiencing when running Some file systems (e.g. FAT32) have a file size limitation. Do any of the files you're using exceed the file size limit specified by the filesystem you're using? In any case, could you also tell me the revision of ouster-sdk you're using? Best Regards, |
Hi again Pascal, I tried this again (now on a Windows machine) and can confirm the issue. I'll see if we can come up with a fix and get back to you with an update as soon as possible. Best Regards, |
Hi Pascal, I've created a fix. If you're building from source, you should be able to apply the following patch to resolve the issue. We'll include this fix in the next release toward the end of September, (which also includes more bug fixes!) Best Regards,
|
Hello, I have installed the latest ouster-sdk (0.9.0). I would like to use the mapping (SLAM) functions and OSF file conversion directly in Python. This way, I can customize these functions according to my needs.
Do you have any examples of Python scripts to help me?
Thank you
Pascal
The text was updated successfully, but these errors were encountered: