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

相关推荐
Milky.Way几秒前
单片机——基础介绍(CPU内部)
单片机·嵌入式硬件
..Dauntless..9 分钟前
【stm32】中断(四)——保护与恢复
stm32·单片机·嵌入式硬件
创界工坊工作室3 小时前
133-基于Arduino六足爬虫机器人设计
stm32·单片机·嵌入式硬件·机器人·51单片机·proteus
LabVIEW开发4 小时前
SIM928 电压源 + LabVIEW 低温偏置怎么加?
单片机·嵌入式硬件·labview
芦苇电子8 小时前
STM32 驱动 ESP8266 开热点:手机连 WiFi 点 LED,AT 指令逐行拆解
stm32·嵌入式硬件·智能手机
小李不想当小白10 小时前
HAL库之定时器输出比较(STM32 HAL库学习笔记)
笔记·stm32·单片机·嵌入式硬件·学习·嵌入式
LabVIEW开发11 小时前
PAV 电源 + LabVIEW:电压拉偏怎么做?
单片机·嵌入式硬件·labview
都在酒里1 天前
STM32G431 + FreeRTOS 长稳运行实战:看门狗、故障留痕与掉电恢复
stm32·嵌入式硬件·深度学习
郝学胜-神的一滴1 天前
Effective STL 条款 14:用扩容函数避免重新分配
linux·开发语言·网络·数据结构·c++·单片机
Zw-awa1 天前
CAN 总线怎么用:帧里的 ID 为什么既是身份又是优先级,位定时和总线负载怎么算,三个节点怎么互通,以及 CAN FD、ISO-TP 和 UDS 各管什么
stm32