I am trying run some ros2 command directly inside Qt, but I don’t know how to set up Qt’s environment or how run the
setup.bash file inside Qt?
For example, I tried:
system(qPrintable(“. ~/ros2_install/ros2-osx/setup.bash”)); in Qt, and get the error as following:
env: python3: No such file or directory
error: unable to find fallback python3 executable
I know there is one way that I can source the
setup.bash file in Terminal and run Qt from this Terminal, but is there a method to run the setup.bash file directly inside Qt?