Hi all,
I try to make a simple script for steering the Rover with a joystick without using a terminal.
I create a joystick.sh file :
#!/bin/bash
roslaunch leo_joy_example joy.launch
If i launch the script with a terminal, it work. But if i " double-click" on the sript :
/home/ubuntu/joystick.sh: ligne 5: roslaunch : commande introuvable
If i add this env variable :
PATH=$PATH:/opt/ros/noetic/bin:/opt/gcc-arm-none-eabi-9-2020-q2-update/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
export PATH
When i “double-click” on the sript:
Traceback (most recent call last):
File "/opt/ros/noetic/bin/roslaunch", line 34, in <module>
import roslaunch
ModuleNotFoundError: No module named 'roslaunch'
Do you have any ideas?