ros-bridge
ros-bridge copied to clipboard
KeyError: 'simple_pid.PID' in carla_ackermann_control_node.py
In carla_ackermann_control_node.py, the code
sys.modules['simple_pid.PID'] on lines 58 and 74 throws a key error.
After taking a look at the keys in sys.modules, the issue seems to be with the capitalization of PID.
If the code is changed to ...
sys.modules['simple_pid.pid'] it works just fine
@VishGit1234 it also works without code modifications by sticking to an older version of the simple-pid module, e.g. simple-id==1.0.1 instead of using the latest one (see https://github.com/carla-simulator/ros-bridge/blob/master/requirements.txt#L8C8-L8C8).