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

Refactor/v0.10 #13

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Refactor/v0.10 #13

wants to merge 12 commits into from

Conversation

jhughes50
Copy link

Update version of ouster_decoder that works with ouster sdk v0.10. It has been tested with ROS bags, the gen 6 and gen 0 lidars. I also organized the code base by putting all class and struct definition in their own header files in include and separated out the main function for each node. Finally, I updated documentation with a brief description of everything in the header files and an updated readme. I did create a new launch file to launch everything at once called ouster.launch and set the default parameter values to what we use.

The logic has remained the same, I only made changes to how we get information from the ouster client and changed a few variable types to correspond with that.

@jhughes50 jhughes50 linked an issue Feb 2, 2024 that may be closed by this pull request
@versatran01
Copy link
Collaborator

The repo contains a .clang-format file. Could you format your PR with that?

@fcladera fcladera removed their request for review February 3, 2024 22:27
<arg name="lidar_port" default="0" doc="port to which the sensor should send lidar data"/>
<arg name="imu_port" default="0" doc="port to which the sensor should send imu data"/>
<arg name="replay" default="true" doc="do not connect to a sensor; expect /os_node/{lidar,imu}_packets from replay"/>
<arg name="sensor_hostname" default="192.168.100.12" doc="hostname or IP in dotted decimal form of the sensor"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd suggest not changing these defaults, as this depends on the user.

@@ -0,0 +1,144 @@
/*!
* Kumar Robotics
* Januart 2024 refactor
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

README.md Outdated
This decoder is intended to extend the ouster_ros package from https://github.com/ouster-lidar/ouster_example

It has very low latency (<0.2ms) compared to ouster_example (>3ms), tested on Intel i7 11th gen cpu.
This decoder is intended as an alternative the [ouster-ros](https://github.com/ouster-lidar/ouster-ros) decoder. It publishes things like LidarScans in a different formats which may be better for things like Lidar Odometry, while things like point clouds, signal, range and IMU remain in the same format. It also has very low latency (<0.2ms) compared to ouster_example (>3ms), tested on Intel i7 11th gen cpu. This will also notify you when packets are dropped. The decoder is up to date with the v0.10 of the ouster SDK.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if ouster's official decoder still has >3ms latency?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jhughes50 put together a few tests and I am stealing his slide here:
image

@jhughes50
Copy link
Author

I updated the readme to reflect the new latency. I removed the sensor_hostname and udp_dest defaults and kept the port defaults, but can remove them if we don't want them in a launch file. I also changed the formatting to match throughout.

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.

Incompatibility with ouster-ros v0.10.0+
3 participants