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

Simulate a 1D-Lidar (laser scan) #4049

Closed
JiayunjieJYJ opened this issue Nov 25, 2021 · 6 comments
Closed

Simulate a 1D-Lidar (laser scan) #4049

JiayunjieJYJ opened this issue Nov 25, 2021 · 6 comments

Comments

@JiayunjieJYJ
Copy link

Can I simulate a 1D-Lidar (laser scan) by using the output of depth data of getCameraImage()? In other words, I want to get a horizonal distance(depth) data like a 1D-Lidar.

Is it possible? Or is there any demo about it ??

Thank alot!!!

@rohit-kumar-j
Copy link

rohit-kumar-j commented Nov 25, 2021

Kindly put these queries in Discussions
This is for a 3D point cloud... pointCloudFromCameraImage.py. You can put this in 2D as well. All you need to do is put it in the while loop for making the scan.

Idk why the video is so choppy

Point.Cloud.mp4

@JiayunjieJYJ
Copy link
Author

Kindly put these queries in Discussions This is for a 3D point cloud... pointCloudFromCameraImage.py. You can put this in 2D as well. All you need to do is put it in the while loop for making the scan.

Idk why the video is so choppy

Point.Cloud.mp4

Thanks! I will try it! Hope this method is accuracy enough.

@rohit-kumar-j
Copy link

No problem! You could experiment with the resolution.

@JiayunjieJYJ
Copy link
Author

No problem! You could experiment with the resolution.

Thank you! I made it!

@JiayunjieJYJ
Copy link
Author

No problem! You could experiment with the resolution.

Hi, I find that if I run pybullet in DIRECT mode rather than GUI mode, the depth image can not detect the objects, do you know how to solve it?

@rohit-kumar-j
Copy link

No, I have not faced this. Can you link the code here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants