2021年12月3日
摘要:
提問1:啥叫canopen?答:開放的現場總線標準的一種,應用層協議,一般用于工業設備上的通信; 提問2:啥是基礎協議,啥是設備子協議答: 1、對canopen網絡的架構進行了規范 ,針對某些特定的對象字典中的數據對象規定了相應的功能,對應位 CIA 310協議; 2、對特定行業制定的標準設備應用協
閱讀全文
posted @ 2021-12-03 11:17
高山上的星星
閱讀(1463)
推薦(0)
2020年1月7日
摘要:
本文鏈接:https://blog.csdn.net/michaelhan3/article/details/75667066 1、使用用C++的stringstream。 主要原因是操作簡單。 數字轉字符串,int float類型 同理 #include <string>#include <sst
閱讀全文
posted @ 2020-01-07 21:13
高山上的星星
閱讀(962)
推薦(0)
摘要:
一、基礎知識點: 1、概念: Slave: 工業自動化用語;響應請求; Master:工業自動化用語;發送請求; Server:IT用語;響應請求; Client:IT用語;發送請求; (Slave == Server Master == Client) Modbus協議是一個master/slav
閱讀全文
posted @ 2020-01-07 15:13
高山上的星星
閱讀(4582)
推薦(0)
2019年12月2日
摘要:
關鍵詞:getParam(); setParam();yaml 背景代碼: .......... ros::NodeHandle na; std::string initNodeName ; na.getParm("nodeName", initNodeName); ............. 疑問
閱讀全文
posted @ 2019-12-02 15:07
高山上的星星
閱讀(274)
推薦(0)
2019年11月12日
摘要:
背景代碼: std::string topic = topic_name.substr(topic_name.find_last_of('/') + 1); // topic_name中沒有'/',這個長度 涉及: 1、find_last_of(); 解析:從string末端開始尋找子串或者字符,如
閱讀全文
posted @ 2019-11-12 21:50
高山上的星星
閱讀(2331)
推薦(1)
摘要:
json格式的解析不需要自己進行編碼實現,已經有好多穩定的開源庫可供使用;c++可以使用jsoncpp,c可以使用cjson JsonCpp是一個開源庫 下載地址:https://github.com/open-source-parsers/jsoncpp 文檔地址:http://open-sour
閱讀全文
posted @ 2019-11-12 15:23
高山上的星星
閱讀(287)
推薦(0)