Qt Creator 與ROS的配置

2021-09-27 11:53:14 字數 505 閱讀 9196

用ros時,發現debug根本無從下手,只有一整遍的執行完整**,很費時繁瑣,同時無法追蹤到ros中每個變數的定義去

ubuntu 18.04+ros-melodic

參考鏈結

1)官方鏈結–

發現當匯入自己的ros工程後,進行編譯時大部分package被abandon或者失敗,**了許久發現qtcreator預設的build system是buildtools,用的catkin build進行編譯,而博主自己之前的package都是用的catkin_make,二者不太相容出現了問題。

先在工作區間如catkin_ws 上使用catkin clean。清理之前build的檔案

開啟最上邊工具欄tool 下面的options,選擇到ros如下圖

在default build system處選擇catkinmake,之後進行編譯就跟ros下一樣了!

使用QT Creator除錯ROS工程

sudo cd desktop sudo gedit org.qt project.qtcreator.desktop 2.對其進行如下修改 desktop entry type exec bash i c opt qt5.12.6 tools qtcreator bin qtcreator nam...

Qt Creator使用 ROS工作空間匯入

ubuntu16.04安裝qt59的過程如下 sudo add apt repository ppa levi armstrong qt libraries xenial sudo add apt repository ppa levi armstrong ppa sudo apt update s...

Qt Creator 初識訊號與槽

qt使用訊號和槽機制來完成物件之間的協同操作,說白了就是這邊發射乙個訊號 操作 那邊接受訊號,並完成操作。好比我讓你幹什麼事,你接到命令後就去幹這個事。我們需要做以下幾步。首先標頭檔案中宣告這個槽函式,然後在.cpp檔案中定義這個槽函式,也就是把需要做什麼事這個活動內容寫下來,最後在.cpp檔案中的...