Problem compiling ROS packages (add_subdirectory)
Hello,
I have developed a package to control a device. It makes use of cmake subproject, to use ROS-independent C++ code to interface with the device and send/receive serial command. On most of PCs it wotks and compiles with no problem, but it happens sometime to other users that does not name a type error occur. More precisely, one of the problem occurs at this line.
.../qb_device_driver/api/qbdevice-api-7.x.x/qbrobotics-driver/libs/research/include/qbrobotics_research_api/qbrobotics_research_api.h:65:48: error: ‘Timeout’ in ‘class serial::Serial’ does not name a type
65 | explicit Communication(const serial::Serial::Timeout &timeout);
| ^~~~~~~
You can find here the entire ROS project. The problem is in the qbdevicedriver package.
Thank you in advance!
Asked by Uf on 2023-03-23 02:54:48 UTC
Comments
I'm sorry to have to do this for something seemingly minor, but please don't post screenshots of terminal text or source code in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal or the source into your question text. Do make sure to format it properly by selecting the text and pressing
ctrl+k
(or clicking the Preformatted Text button (the one with101010
on it)).You don't need to post a new question, just edit your curent one. You can use the
edit
button/link for this.After you replace the screenshot with the error message itself, we can re-open your question.
Asked by gvdhoorn on 2023-03-23 03:02:12 UTC
thanks gvdhoorn. It is ok now?
Asked by Uf on 2023-03-23 03:13:12 UTC
Thanks. I've fixed the formatting a bit as well.
Asked by gvdhoorn on 2023-03-23 03:18:48 UTC