摘要: 1、sudo apt-get update 失败 E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用) E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它? 解决方式: l 阅读全文
posted @ 2020-08-10 22:10 youlin 阅读(402) 评论(0) 推荐(0) 编辑
摘要: http://docs.cppmicroservices.org/en/stable/# 阅读全文
posted @ 2020-07-14 00:06 youlin 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1、下载最新release版本release-3.4版本 https://github.com/CppMicroServices/CppMicroServices/tree/release-3.4 2、编译: (1)修改顶层CMakeLists.txt ,打开生成共享库以及编译example编译选项 阅读全文
posted @ 2020-07-14 00:02 youlin 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: #include <string> #include <queue> #include <stdint.h> typedef uint8_t E_CMD; typedef struct { E_CMD id; int more; Json::Value param; }S_CMD; class Cm 阅读全文
posted @ 2020-07-03 16:09 youlin 阅读(211) 评论(0) 推荐(0) 编辑
摘要: void sig_handler(int signo) { std::cout << "oops! stop!!!" << std::endl; _exit(0); } int main(int argc, char **argv) { PadSim pad_sim ; pad_sim.init(n 阅读全文
posted @ 2020-07-02 16:46 youlin 阅读(215) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_35212671/article/details/53150417?utm_source=blogxgwz7 阅读全文
posted @ 2020-07-02 16:09 youlin 阅读(238) 评论(0) 推荐(0) 编辑
摘要: error: ISO C++ forbids declaration of ‘init’ with no type [-fpermissive] (1)检查 init函数是否缺乏返回值类型 阅读全文
posted @ 2020-07-02 15:19 youlin 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 在类的头文件中不暴露私有变量,目的一般有两个: 1. 提供给别人的dll对应的头文件中,不希望在头文件中暴露私有变量的名称; 2. 因为私有变量的类型需要包含另一个头文件,所以不希望在头文件中包含其它头文件; 一般可以用下面的方法来隐藏私有变量。 在头文件中封装接口: TWebSocketServe 阅读全文
posted @ 2020-07-02 11:44 youlin 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: rostopic pub -r 10 /toipic_name Tab+Tab rosservice call /service_name Tab+Tab 阅读全文
posted @ 2019-03-22 15:30 youlin 阅读(209) 评论(0) 推荐(0) 编辑
摘要: (1)首先设定输出两个口相同pwm,通过电压边测量左右两边电压,监测输出两边电压输出是否一致, 排除硬件电路的影响。 ①小pwm ②大pwm 两种情况下输出情况 (2)排查编码器,(1)相同下,监测一段时间内,编码器的输出是否一致,排查编码器是否异常。 阅读全文
posted @ 2019-03-13 16:54 youlin 阅读(735) 评论(0) 推荐(0) 编辑