Skip to content

Conversation

@mgagvani
Copy link
Contributor

  • Part in lidar.py to interface with Hokuyo
  • Fixes to LidarPlot2 to be used with Hokuyo so it can act as a Camera in the web interface
  • Integration of LidarPlot2 with existing templates/configs

Notes:
To set it up you need to configure the Ethernet port on the Pi by creating a file in /etc/interfaces.d. This is well-described by many online tutorials, and googling "f1tenth hokuyo" also brings up a lot of helpful info.

Also, unlike the RPLidar(2) parts, instead of returning a generator of individual measurements this part returns the entire scan at once. Thus in complete.py it is called lidar/dist_scan instead of lidar/dist_array.

Pictures:
image
IMG_8345
IMG_8347

Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR. It would be great to be able to use the Lidar on an F1Tenth car. The the code looks very good; I have left a few comments. There are other concerns:

  • is there a parallel PR for the docs? Without documentation on how to setup the Lidar the software is not that useful and it becomes a maintenance burden. Links out to reliable, stable content can do most of the work. It would also be great to have a video of the webui output.
  • we should also mention in the camera section of the docs about how to setup the 'camera' to be the lidar scan. That is a really good idea.
  • we should rebase/squash these two commits into a single commit.

@mgagvani
Copy link
Contributor Author

Thanks @Ezward for the review, I'll probably get to the fixes/writing docs in a week or so.

@mgagvani
Copy link
Contributor Author

mgagvani commented Jul 3, 2024

Hi @Ezward I addresssed your review and made a PR for documentation: autorope/donkeydocs#56

@mgagvani mgagvani requested a review from Ezward July 3, 2024 16:12
outputs=['cam/image_array', 'cam/depth_array',
'imu/acl_x', 'imu/acl_y', 'imu/acl_z',
'imu/gyr_x', 'imu/gyr_y', 'imu/gyr_z'],
threaded=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be left a threaded part.

# show the image in the window
cv2img = convert_from_image_to_cv2(img)
cv2.imshow("lidar", cv2img)
# cv2img = convert_from_image_to_cv2(img)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove commented code.

Copy link
Contributor

@DocGarbanzo DocGarbanzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments and please also bump up the version. You might want to wait until your other PR get's merged so you got the right version to base off.

@mgagvani
Copy link
Contributor Author

mgagvani commented Aug 9, 2025

@DocGarbanzo should be good now.

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

Successfully merging this pull request may close these issues.

3 participants