Skip to content

Commit

Permalink
Merge branch '137-add-hesai-xt16' of github.com:Futu-reADS/nebula int…
Browse files Browse the repository at this point in the history
…o 137-add-hesai-xt16
  • Loading branch information
jemmmel committed Dec 2, 2024
2 parents d45c81b + 8ef1630 commit 80046d6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/parameters/vendors/hesai/xt16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ json_to_markdown("nebula_ros/schema/PandarXT16.schema.json") }}
1 change: 1 addition & 0 deletions docs/supported_sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The `sensor_model` parameter below decides which sensor driver is launched.
| ------------ | -------------- | ----------------------- | ----------- |
| Pandar64 | Pandar64 | Pandar64.param.yaml | ⚠️ |
| Pandar 40P | Pandar40P | Pandar40P.param.yaml ||
| Pandar XT16 | PandarXT16 | PandarXT16.param.yaml | ⚠️ |
| Pandar XT32 | PandarXT32 | PandarXT32.param.yaml ||
| Pandar XT32M | PandarXT32M | PandarXT32M.param.yaml | ⚠️ |
| Pandar QT64 | PandarQT64 | PandarQT64.param.yaml ||
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ nav:
- QT64: parameters/vendors/hesai/qt64.md
- QT128: parameters/vendors/hesai/qt128.md
- AT128: parameters/vendors/hesai/at128.md
- XT16: parameters/vendors/hesai/xt16.md
- XT32: parameters/vendors/hesai/xt32.md
- XT32M: parameters/vendors/hesai/xt32m.md
- Velodyne:
Expand Down
2 changes: 2 additions & 0 deletions nebula_common/include/nebula_common/hesai/hesai_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ inline ReturnMode return_mode_from_string_hesai(
const std::string & return_mode, const SensorModel & sensor_model)
{
switch (sensor_model) {
case SensorModel::HESAI_PANDARXT16:
case SensorModel::HESAI_PANDARXT32:
case SensorModel::HESAI_PANDARXT32M:
case SensorModel::HESAI_PANDAR128_E3X:
Expand Down Expand Up @@ -474,6 +475,7 @@ inline ReturnMode return_mode_from_int_hesai(
const int return_mode, const SensorModel & sensor_model)
{
switch (sensor_model) {
case SensorModel::HESAI_PANDARXT16:
case SensorModel::HESAI_PANDARXT32:
case SensorModel::HESAI_PANDARXT32M:
case SensorModel::HESAI_PANDAR128_E3X:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ namespace hesai_packet

#pragma pack(push, 1)

struct TailXT16
{
uint8_t reserved1[10];
uint8_t return_mode;
uint16_t motor_speed;
DateTime<1900> date_time;
uint32_t timestamp;
uint8_t factory_information;
};
using TailXT16 = TailXT32;

struct PacketXT16 : public PacketBase<8, 16, 2, 100>
{
Expand Down

0 comments on commit 80046d6

Please sign in to comment.