diff --git a/ros/src/styx/server.py b/ros/src/styx/server.py index cd4e23540e..6583d111f1 100755 --- a/ros/src/styx/server.py +++ b/ros/src/styx/server.py @@ -19,7 +19,7 @@ @sio.on('connect') def connect(sid, environ): print("connect ", sid) - bridge.publish_dbw_status(dbw_enable) + bridge.publish_dbw_status(False) def send(topic, data): s = 1 @@ -31,7 +31,7 @@ def send(topic, data): @sio.on('telemetry') def telemetry(sid, data): global dbw_enable - if(data["dbw_enable"] != dbw_enable): + if data["dbw_enable"] != dbw_enable: dbw_enable = data["dbw_enable"] bridge.publish_dbw_status(dbw_enable) bridge.publish_odometry(data)