IFRA-Cranfield / ros2_RobotSimulation

ROS2.0 Foxy and Humble repositories which provide ready-to-use ROS2.0 Gazebo + MoveIt!2 simulation packages for different Industrial and Collaborative Robots.
Apache License 2.0
149 stars 43 forks source link

file not found, Please input the PROGRAM FILENAME correctly as a ROS2 parameter in the Ubuntu Terminal #18

Open JustWinWin opened 11 months ago

JustWinWin commented 11 months ago

When I run the ros2_execution code command, terminal displays "file not found, Please input the PROGRAM FILENAME correctly as a ROS2 parameter in the Ubuntu Terminal". But I have put the code file in the specified "programs" folder.

IFRA-Cranfield commented 10 months ago

Hi @JustWinWin,

In order to execute .txt sequences using ros2_execution.py, your ros2_RobotSimulation package must be located properly in the ~/dev_ws/src workspace. This is how the .txt files are read from the ros2_execution.py script:

filepath = os.path.join(os.path.expanduser('~'), 'dev_ws', 'src', 'ros2_RobotSimulation', 'ros2_execution', 'programs', PR_NAME + ".txt")

Best regards, Mikel, IFRA-Cranfield