RobotecAI / ros2-for-unity

High-performance ROS2 solution for Unity3D
Apache License 2.0
448 stars 58 forks source link

Sensor example #31

Closed Simao123133 closed 2 years ago

Simao123133 commented 2 years ago

Hello,

I am trying to implement a Lidar sensor with header. I could not find an example of a sensor, only the abstract file Sensor.cs.

Best regards, Simao

adamdbrw commented 2 years ago

We might share one in the future, however there is currently only the interface which you can use (or not). ISensor is only a suggestion on how a sensor might look like, you don't need to use it.

You can handle the lidar in multiple ways, the simplest is probably to use RaycastCommand. Pack the data into a sensor_msgs.msg.PointCloud2 and publish it.

adamdbrw commented 2 years ago

Can we close this issue? @Simao123133

Simao123133 commented 2 years ago

Sure, thank you.

On Wed, Feb 23, 2022 at 9:03 AM Adam Dąbrowski @.***> wrote:

Can we close this issue? @Simao123133 https://github.com/Simao123133

— Reply to this email directly, view it on GitHub https://github.com/RobotecAI/ros2-for-unity/issues/31#issuecomment-1048569803, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLSOWSB6PUOSWCTVDSIEH3U4SPHVANCNFSM5L7WHVSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>