-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for adding custom fields to ``LidarScan`` s with ``add_field`` and ``del_field`` * Added per-request timeout arguments to ``SensorHttp`` * Added sensor user_data to ``sensor_info/SensorInfo`` and metadata files * Removed ``updated_metadata_string()`` and ``original_string()`` from ``sensor_info`` * Added ``to_json_string()`` to ``sensor_info`` to convert a ``sensor_info`` to a non-legacy metadata JSON string * Unified Python and C++ ``Packet`` and ``PacketFormat`` classes * Added ``validate`` function to ``LidarPacket`` and ``ImuPacket`` to check for ID and size mismatches * [BREAKING] LidarScan's width and height have been switched to size_t from ptrdiff_t in C++ * Refactor metadata parsing * Add ``get_version`` to ``sensor_info/SensorInfo`` to retrieve parsed version information * Add ``get_product_info`` to ``sensor_info/SensorInfo`` to retrieve parsed lidar model information * Raise an exception rather than throw an unrelated error when multiple viable metadata files are found for a given PCAP * Add ability to slice a scan source, returning a new sliced ScanSource * [BREAKING] Removed ``hostname`` in Python ``SensorInfo`` and ``name`` from C++ ``sensor_info`` * [BREAKING] Removed ``udp_port_lidar``, ``udp_port_imu`` and ``mode`` from C++ ``sensor_info`` * [BREAKING] Deprecated ``udp_port_lidar``, ``udp_port_imu`` and ``mode`` in Python ``SensorInfo``. These fields now point to the equivalent fields inside of ``SensorInfo::config``. * [BREAKING] Removed ``cols`` and ``frequency`` from ``LidarMode`` in Python * [BREAKING] Deprecated ```data``` and ``capture_timestamp`` from Python ``Packet`` * [BREAKING] Removed methods from Python ``ImuPacket`` and ``LidarPacket`` classes that simply wrapped ``PacketFormat`` * [BREAKING] Removed ``begin()`` and ``end()`` iterators of ``LidarScan`` in C++ * [BREAKING] Remove deprecated package stubs added in previous 0.11 release. * [BREAKING] Replaced integer backed ``ChanField`` enumerations with strings. * [BREAKING] Removed ``CUSTOM0`` through ``CUSTOM9`` ChanField enumerations. * [BREAKING] Extra fields in sensor metadata are now ignored and discarded if saved from the resulting ``sensor_info/SensorInfo`` * [BUGFIX] Prevent last scan from being emitted twice for PCAP * [BUGFIX] Fix corrupted packets due to poor handling of fragmented packet drop in PCAPs * [BUGFIX] Fix possible crash when working with custom UDPProfileLidars
- Loading branch information
1 parent
483206f
commit e18290b
Showing
206 changed files
with
15,141 additions
and
5,757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
Clip PointCloud in the Ouster-CLI | ||
================================= | ||
|
||
.. _ouster-cli-clip: | ||
|
||
|
||
Clip Command | ||
------------ | ||
|
||
The clip command clips the lidar scan by the given range and streams down the modified lidar | ||
scan to the subsequent commands (like slam, viz, save, etc.). The position of the clip command | ||
in the ouster-cli command chain makes a difference as it only affects the commands that follow it. | ||
|
||
To explore the parameters you can use with the clip command, you can use the --help flag: | ||
|
||
.. code:: bash | ||
ouster-cli source <SENSOR_HOSTNAME> / <FILENAME> clip --help | ||
Example Usage | ||
------------- | ||
|
||
To keep the points within the 20 m to 50 m range and save the modified lidar scan into a PCAP file | ||
with the visualizer on, run the following command: | ||
|
||
.. code:: bash | ||
ouster-cli source <SENSOR_HOSTNAME> / <FILENAME> clip --min-range 20 --max-range 50 viz save clipped.pcap | ||
Remember, the clip command only affects the commands after it. In the following example, the | ||
viz command runs before the clip command, which means the point cloud modification won't be reflected | ||
in the visualizer but will affect the subsequent save command and the saved PCAP file: | ||
|
||
.. code:: bash | ||
ouster-cli source <SENSOR_HOSTNAME> / <FILENAME> viz clip --min-range 20 --max-range 50 save clipped_2.pcap | ||
In addition to the ``min-range`` and ``max-range`` parameters, the ``clip`` command also includes the | ||
``percent-range`` parameter. This parameter discards points with ranges greater than a specified percentile | ||
in each lidar scan, helping to filter out noise points. | ||
|
||
.. code:: bash | ||
ouster-cli source <SENSOR_HOSTNAME> / <FILENAME> clip --percent-range 99 viz | ||
Combined with SLAM Command | ||
-------------------------- | ||
|
||
The ``slam`` command also has ``min-range`` and ``max-range`` parameters. When the clip command is | ||
used after the ``slam`` command, the ``clip`` command will, by default, use the range settings specified | ||
in the slam command. However, you can explicitly pass in the range settings to the ``clip`` command to | ||
apply different ranges to the clip operation. | ||
|
||
Note that the range settings in the ``slam`` command only affect the point cloud within the SLAM algorithm. | ||
The slam range settings will not modify the lidarscan and will not affect the other following commands. | ||
|
||
|
||
Example Usage | ||
------------- | ||
|
||
Experiment with the following commands using a pre-recorded PCAP or OSF file: | ||
|
||
.. code:: bash | ||
ouster-cli source <FILENAME> slam clip --min-range 20 --max-range 50 viz save clipped_3.ply | ||
ouster-cli source <FILENAME> slam --min-range 10 --max-range 100 clip --min-range 20 --max-range 50 viz save clipped_4.ply | ||
You can view the output PLY files using the open source software `CloudCompare`_ | ||
For more details about the slam command, refer to the :ref:`SLAM Command <ouster-cli-mapping>` | ||
|
||
|
||
.. _CloudCompare: https://www.cloudcompare.org/ |
Oops, something went wrong.