ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I solved it by not invoking the python script from flask, but by calling a bash script from flask.
#!/bin/bash
source /opt/ros/foxy/setup.bash
python3 foo_containing_ros2_node.py