ros2与stm32通讯比较优秀的串口库

这个是我确定的串口库:serial: serial::Serial Class Reference (wjwwood.io)

我也不知道其他的串口库了,我就知道几个,然后我觉得这个是3个里面学习周期比较短,然后质量比较可靠的库

我隐隐觉得这个串口库就是ros1选择的串口库;看那个网址就是这个串口库的网址

不错,这位仁兄同时开发了ROS2的rclcpp,就是普通教材里面介绍最多的那个rclcpp.

代码下载地址:GitHub - wjwwood/serial: Cross-platform, Serial Port library written in C++

README.md

Serial Communication Library

(Linux and OS X)

(Windows)

This is a cross-platform library for interfacing with rs-232 serial like ports written in C++. It provides a modern C++ interface with a workflow designed to look and feel like PySerial, but with the speed and control provided by C++.

This library is in use in several robotics related projects and can be built and installed to the OS like most unix libraries with make and then sudo make install, but because it is a catkin project it can also be built along side other catkin projects in a catkin workspace.

Serial is a class that provides the basic interface common to serial libraries (open, close, read, write, etc..) and requires no extra dependencies. It also provides tight control over timeouts and control over handshaking lines.

Documentation

Website: Serial by wjwwood

API Documentation: serial: Serial Library

Dependencies

Required:

  • catkin - cmake and Python based buildsystem
  • cmake - buildsystem
  • Python - scripting language
    • empy - Python templating library
    • catkin_pkg - Runtime Python library for catkin

Optional (for documentation):

  • Doxygen - Documentation generation tool
  • graphviz - Graph visualization software

Install

Get the code:

复制代码
git clone https://github.com/wjwwood/serial.git

Build:

复制代码
make

Build and run the tests:

复制代码
make test

Build the documentation:

复制代码
make doc

Install:

复制代码
make install

License

The MIT License

Authors

William Woodall wjwwood@gmail.com John Harrison ash.gti@gmail.com

Contact

William Woodall william@osrfoundation.org

相关推荐
迅为电子2 小时前
释放多屏潜能:迅为RK3588开发板Android多屏同显开发完全指南
嵌入式硬件·rk3588开发板·多屏同显开发
李斯维2 小时前
MBR 和 GPT 区别
windows·嵌入式硬件·bootstrap·计算机外设
学习路上_write2 小时前
stm32板子mpu6050读取的器件ID一直是0xFF
stm32·单片机·嵌入式硬件
恒锐丰小吕3 小时前
无锡黑锋 HF6010 PWM/PFM控制DC-DC降压稳压器技术解析
嵌入式硬件·硬件工程
亿道电子Emdoor3 小时前
【Arm】MDK查看语句的执行累积时间和次数
stm32·单片机·物联网
Tel199253080043 小时前
CCD相机同步外触发拍照抓拍识别高速脉冲计数器信号采集模块
单片机·数码相机·物联网·自动化·工业自动化·仪器仪表
l3538o675733 小时前
国产POE降压恒压芯片方案选型:48v-52v输入转5v-12v/1-3A电源芯片
人工智能·科技·单片机·嵌入式硬件·电脑·智能家居
v先v关v住v获v取3 小时前
建筑材料上楼搬运机结构设计cad3张+三维图+设计说明书
科技·单片机·51单片机
JSMSEMI113 小时前
SC6D10170H-JSM 碳化硅肖特基二极管
stm32·单片机·嵌入式硬件
想不出名字ಥ_ಥ3 小时前
STM32学习笔记--01学会如何点亮一颗LED灯
笔记·stm32·学习