ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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