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) 

Build Status

(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

相关推荐

  1. Linux设备STM32 USB串口通讯

    2023-12-06 10:10:03       42 阅读
  2. K210 UART串口通信介绍 STM32通信

    2023-12-06 10:10:03       32 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 10:10:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 10:10:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 10:10:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 10:10:03       20 阅读

热门阅读

  1. MybatisPlus

    2023-12-06 10:10:03       44 阅读
  2. RedHat8.1安装mysql5.6(GLIBC方式)

    2023-12-06 10:10:03       42 阅读
  3. 网络协议的进化之路

    2023-12-06 10:10:03       31 阅读
  4. 深入理解 Spring Boot 的 ApplicationRunner 接口

    2023-12-06 10:10:03       35 阅读
  5. 软件测试面试真题 | 什么是PO设计模式?

    2023-12-06 10:10:03       40 阅读
  6. 汇编:常用的输入与输出

    2023-12-06 10:10:03       40 阅读
  7. MySQL的事务

    2023-12-06 10:10:03       42 阅读
  8. C#结构体应用实例

    2023-12-06 10:10:03       39 阅读
  9. day7 四数之和为x

    2023-12-06 10:10:03       31 阅读
  10. Frida抓包flutter app过程记录

    2023-12-06 10:10:03       43 阅读