Moved the ipython REPL(Read–eval–print loop) from Scoot.py into new repl.py
Fixed some service calls in Scoot.py
Working searchRandomWalk
clean up of init.pys and adding git ignores
removed individual behaviors from rosrun(should use the repl instead for now)
added some logging
clean, build, run sim, source
roslaunch ./launch/scoot.launch "name:=scout_1" "name_tf:=scout_1_tf"
rosrun scoot repl.py
scout.searchRandomWalk.main(scoot)
scoot.drive(2,ignore=Obstacles.IS_VOLATILE|Obstacles.IS_LIDAR) #to get away from the volatile if found
#Lather, rinse, repeat
Expected output when running searchRandomWalk
Search Node Started
[INFO] [#, #]: Wandering...
I saw an obstacle!
[INFO] [#,#]: Wandering...
I found a volatile! ice
An exception has occurred, use %tb to see the full traceback.
SystemExit: 0
Task would have code that would suppress the systemexit exception
def launch(self, prog):
try:
rval = prog(has_block=self.has_block)
if rval is None:
rval = 0
except SystemExit as e:
rval = e.code
return rval
clean, build, run sim, source
Expected output when running searchRandomWalk
Task would have code that would suppress the systemexit exception