QT-Creator cant find ros2 packages
-
Hallo,
When I load finished ros packages into my project from GitHub, Qtcreator finds all the ros packages.
When I create a new package by hand it has no links to the Ros packages and shows me all Ros2 commands as errors.
Is there a way to set this correctly?Thanks in advance
-
@Schloern
To run ros packages, it is necessary to run the setup.bash file, for example, the setup.bash file should be run in the linux operating system.source /opt/ros/humble/setup.bash
Start the QT Creator application in the terminal where you enter the setup.bash controls.
step 1: Open terminal and enter "source /opt/ros/humble/setup.bash" command. Note: this is ros humble enter your own setup.bash file
step 2: Open the QT Creator application from the terminal you included ros2
step 3: If you want to work simultaneously with ROS, use threads.