Skip to content

Bug with push button #103

Open
Open
@maximericaud

Description

@maximericaud

Describe the bug

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

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal
  2. roslaunch mushr_base teleop.launch
  3. See log attached

Environment

  • OS: Ubuntu 18.04 LTS
  • Platform: Jetson Nano
  • Library versions: ROS melodic, python 2.7.17

ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions