Skip to content

Commit 3e96726

Browse files
committed
publish wheel digital sensor
1 parent c0d9de5 commit 3e96726

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@
3737
ehthumbs.db
3838
Thumbs.db
3939
*.~
40+
*.swp

neato_node/nodes/neato.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,15 @@ def spin(self):
187187
self.scanPub.publish(scan)
188188
self.odomPub.publish(odom)
189189
button_enum = ("Soft_Button", "Up_Button", "Start_Button", "Back_Button", "Down_Button")
190-
sensor_enum = ("Left_Side_Bumper", "Right_Side_Bumper", "Left_Bumper", "Right_Bumper")
190+
sensor_enum = ("Left_Side_Bumper", "Right_Side_Bumper", "Left_Bumper", "Right_Bumper", "Left_Wheel",
191+
"Right_Wheel")
191192
for idx, b in enumerate((btn_soft, btn_scr_up, btn_start, btn_back, btn_scr_down)):
192193
if b == 1:
193194
button.value = b
194195
button.name = button_enum[idx]
195196
self.buttonPub.publish(button)
196197

197-
for idx, b in enumerate((lsb, rsb, lfb, rfb)):
198+
for idx, b in enumerate((lsb, rsb, lfb, rfb, lw, rw)):
198199
if b == 1:
199200
sensor.value = b
200201
sensor.name = sensor_enum[idx]

0 commit comments

Comments
 (0)