# lslidar_c16
## version track
Author: Yutong
### Ver2.1 Yutong
- Remove unused code and format code
- Remove `C16` in namespace, file name, folder name in order to make this driver to adapt to other further lslidar models. This is not completed, put it in the TODO list
### Ver2.0 Yutong
- Add GPS timestamp to PointCloud2 message
There is timestamp field in PointCloud2/fields part
- Using apollo/drivers/ namespace to adapt to apollo interface
### ver1.1 Yutong
Using new message type to distinguish different channel data
topic name: scan_channel
topic type: LslidarC16Layer
details: LslidarC16Layer is consist of 16 sets data for different channel, each set of data is represented by Sensor_msgs/LaserScan rosmessage type
Usage: rostopic echo /scan_channel will output all 16 channels data
rostopic echo /scan_channel/scan_channel[*] (* can be from 0 to 15 represents channel num) --> output data will be sensor_msgs/LaserScan message type
Example: There is an example script to show you how to obtain each channel data, located at /lslidar_c16_decoder/scripts/Test_MultiChannel.py
You will need python package numpy and matplotlib.pyplot(optional) to fully run this script
### ver1.05 Yutong
Using rostopic to select the channel you wish to output
topic name: layer_num
topic type: std_msgs/Int8
details: send layer number to topic layer_num
Usage: rostopic pub /layer_num std_msgs/Int8 "data: 5" --> output channel 5 data to topic /scan, message type is sensor_msgs/LaserScan . data number can only from 0 to 15
## Description
The `lslidar_c16` package is a linux ROS driver for lslidar c16.
The package is tested on Ubuntu 14.04 with ROS indigo.
## Compling
This is a Catkin package. Make sure the package is on `ROS_PACKAGE_PATH` after cloning the package to your workspace. And the normal procedure for compiling a catkin package will work.
```
cd your_work_space
catkin_make
```
## Example Usage
### lslidar_c16_decoder
**Parameters**
`device_ip` (`string`, `default: 192.168.1.200`)
By default, the IP address of the device is 192.168.1.200.
`frame_id` (`string`, `default: laser`)
The frame ID entry for the sent messages.
**Published Topics**
`lslidar_packets` (`lslidar_c16_msgs/LslidarC16Packet`)
Each message corresponds to a lslidar packet sent by the device through the Ethernet.
### lslidar_c16_decoder
**Parameters**
`min_range` (`double`, `0.15`)
`max_range` (`double`, `150.0`)
Points outside this range will be removed.
`frequency` (`frequency`, `10.0`)
Note that the driver does not change the frequency of the sensor.
`publish_point_cloud` (`bool`, `true`)
If set to true, the decoder will additionally send out a local point cloud consisting of the points in each revolution.
**Published Topics**
`lslidar_sweep` (`lslidar_c16_msgs/LslidarC16Sweep`)
The message arranges the points within each sweep based on its scan index and azimuth.
`lslidar_point_cloud` (`sensor_msgs/PointCloud2`)
This is only published when the `publish_point_cloud` is set to `true` in the launch file.
**Node**
```
roslaunch lslidar_c16_decoder lslidar_c16.launch --screen
```
Note that this launch file launches both the driver and the decoder, which is the only launch file needed to be used.
## FAQ
## Bug Report
没有合适的资源?快使用搜索试试~ 我知道了~
Apollo-contrib 存储库
共488个文件
h:122个
txt:48个
cc:48个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 89 浏览量
2023-11-10
16:27:28
上传
评论
收藏 2.97MB ZIP 举报
温馨提示
apollo-contrib 包含了来自第三方组织贡献的相关代码。此存储库用于未在 Apollo 计算单元上运行的代码。此处的代码将由贡献组织组织,并将涵盖 在差异许可证下
资源推荐
资源详情
资源评论
收起资源包目录
Apollo-contrib 存储库 (488个子文件)
libQAsioSocket.so.1.0.0 329KB
libStereoCamera.so.1.0.0 173KB
libMessageBus.so.1.0.0 67KB
libImageUtils.so.1.0.0 63KB
libRealtimeDatabase.so.1.0.0 29KB
libRtdbService.so.1.0.0 19KB
libntcan.so.4.0.1 35KB
libntcan.so.4.0.1 29KB
libSatp.so.1.0.2 88KB
libSatpExt.so.1.0.2 52KB
libntcan.a 35KB
libntcan.a 29KB
compile-apollo-proto.bash 2KB
BUILD 330B
cantest.c 146KB
esdcan_common.c 109KB
basa_video.c 68KB
osif.c 65KB
esdcan.c 65KB
basa_can.c 59KB
basa_sysfs.c 33KB
basa_chan.c 29KB
basa_cam_hci.c 28KB
esdcan_pci.c 25KB
basa_main.c 24KB
basa_gps.c 19KB
adv_trigger_ctl.c 12KB
bcan_lib.c 12KB
can_app.c 11KB
basa_fwupdate.c 10KB
pandora_client.c 10KB
common.c 9KB
tcp_command_client.c 9KB
basa_intr.c 8KB
radar_can_app.c 8KB
basa_trigger.c 8KB
basa_i2c.c 7KB
basa_reg.c 7KB
basa_driver.c 7KB
adv_trigger.c 3KB
util.c 3KB
cantest 109KB
cantest 88KB
rawdata.cc 30KB
v2x_traffic_light.cc 22KB
pandar40p_internal.cc 17KB
pandora.cc 15KB
auth_manager.cc 11KB
input.cc 10KB
compensator.cc 10KB
coordinate_transition.cc 10KB
pandora_camera.cc 9KB
calibration.cc 9KB
lslidar_driver.cc 8KB
driver.cc 8KB
uu_send.cc 7KB
v2x_traffic_light_test.cc 6KB
main.cc 6KB
security.cc 6KB
proxy.cc 5KB
transform.cc 5KB
encrypt_utils.cc 5KB
main.cc 5KB
input.cc 4KB
traffic_light_thread.cc 4KB
os_thread.cc 4KB
adapter_uu.cc 3KB
adapter_pc5.cc 3KB
v2x_db.cc 3KB
message_set.cc 3KB
lslidar_driver_nodelet.cc 3KB
convert.cc 3KB
v2x_table.cc 3KB
colors.cc 3KB
shared_sensor_thread.cc 2KB
pandar40p.cc 2KB
test.cc 2KB
test.cc 2KB
v2x_gflags.cc 2KB
uu_message_set.cc 2KB
nodelet.cc 2KB
lslidar_driver_node.cc 2KB
v2x_data.cc 1KB
compensator_node.cc 1KB
ringcolors_nodelet.cc 1KB
transform_nodelet.cc 991B
cloud_nodelet.cc 948B
ringcolors_node.cc 686B
transform_node.cc 666B
cloud_node.cc 602B
velodyne_node.cc 585B
TransformNode.cfg 726B
VelodyneLaserScan.cfg 560B
CloudNode.cfg 559B
VelodyneNode.cfg 434B
CHANGELOG 72KB
.clang-format 1016B
protobuf.cmake 4KB
dkms.conf 386B
COPYING 2KB
共 488 条
- 1
- 2
- 3
- 4
- 5
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6656
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功