You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
process[car/state_publisher-16]: started with pid [14068]
Traceback (most recent call last):
File "/home/robot/catkin_ws/src/mushr/mushr_hardware/push_button_utils/src/push_button.py", line 3, in <module>
import Jetson.GPIO as GPIO
File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/__init__.py", line 1, in <module>
from .gpio import *
File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/gpio.py", line 23, in <module>
from Jetson.GPIO import gpio_pin_data
File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/gpio_pin_data.py", line 560
msg = f"Environment variable 'JETSON_MODEL_NAME={model_name}' is invalid."
^
SyntaxError: invalid syntax
[car/push_button-14] process has died [pid 14050, exit code 1, cmd /home/robot/catkin_ws/src/mushr/mushr_hardware/push_button_utils/src/push_button.py __name:=push_button __log:=/home/robot/.ros/log/ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55/car-push_button-14.log].
log file: /home/robot/.ros/log/ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55/car-push_button-14*.log
I'm guessing the issue is that the Jetson.GPIO library you're using is written for Python 3, but you're running it in a Python 2 ROS environment.
you can downgrade jetson.GPIO or move to Noetic since melodic is stuck to python2 or a quick hack: Patch the Library Manually
Open in bash:
sudo nano /usr/local/lib/python2.7/dist-packages/Jetson/GPIO/gpio_pin_data.py
Change the f-string to a regular string format, Replace:
msg = f"Environment variable 'JETSON_MODEL_NAME={model_name}' is invalid."
With:
msg = "Environment variable 'JETSON_MODEL_NAME={}' is invalid.".format(model_name)
Describe the bug
To Reproduce
Steps to reproduce the behavior:
roslaunch mushr_base teleop.launch
Environment
ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55.zip
The text was updated successfully, but these errors were encountered: