Problem compiling ROS packages (add_subdirectory)

asked 2023-03-23 02:54:48 -0500

Uf gravatar image

updated 2023-03-23 03:21:59 -0500

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 qb_device_driver package.

Thank you in advance!

edit retag flag offensive close merge delete

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 with 101010 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.

gvdhoorn gravatar image gvdhoorn  ( 2023-03-23 03:02:12 -0500 )edit

thanks gvdhoorn. It is ok now?

Uf gravatar image Uf  ( 2023-03-23 03:13:12 -0500 )edit

Thanks. I've fixed the formatting a bit as well.

gvdhoorn gravatar image gvdhoorn  ( 2023-03-23 03:18:48 -0500 )edit