Configuration and launch-files for the use case scenarios of the first REFILLS review.
refills@homer:~/workspace/rs_ws/src/refills_first_review (master)$ rosrun refills_first_review donbot_brain.py
[WARN] [1524051428.975111]: robosherlock not fully integrated
[INFO] [1524051428.994867]: connecting to nav_pcontroller/move_base ...
[INFO] [1524051430.502880]: connected to nav_pcontroller/move_base
[INFO] [1524051431.013499]: connecting to /qp_controller/command
[INFO] [1524051431.296206]: connected to /qp_controller/command
start demo? [y]y
[INFO] [1524051434.464302]: starting REFILLS scenario 1 demo
[INFO] [1524051434.464631]: shelf baseboard detection requires manuel mode
[INFO] [1524051434.464873]: move to free space plx
done? [y]y
add new shelf system? [y]y
before lock
sending belief_new_object(dmshop:'DMShelfSystem', R), rdf_assert(R, knowrob:describedInMap, iaishop:'IAIShop_0', belief_state)
solutions [{u'R': u"'http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI'"}]
----------------------
[INFO] [1524051440.467542]: added shelf system http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI
[INFO] [1524051440.467924]: moving arm to baseboard scanning pose
[INFO] [1524051456.623886]: scan all shelf baseboard plx
finished scanning shelf system? [y]
at this point you have two options:
finished scanning shelf system? [y]1337
[WARN] [1524051628.017757]: skipping baseboard detection
[INFO] [1524051628.018337]: added shelf system 0
[INFO] [1524051628.018541]: shelf system 0 complete
[INFO] [1524051628.018726]: added shelf system 1
[INFO] [1524051628.018918]: shelf system 1 complete
[INFO] [1524051628.019098]: added shelf system 2
[INFO] [1524051628.019276]: shelf system 2 complete
[INFO] [1524051628.019448]: added shelf system 3
[INFO] [1524051628.019628]: shelf system 3 complete
before lock
sending belief_new_object(dmshop:'DMShelfFrameFrontStore', ID), rdf_assert('http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI', knowrob:properPhysicalParts, ID, belief_state),object_affordance_static_transform(ID, A, [_,_,T,R]),rdfs_individual_of(A, dmshop:'DMShelfPerceptionAffordance')
solutions [{u'A': u"'http://knowrob.org/kb/dm-market.owl#DMShelfPerceptionAffordanceFrameFront_JCXYGROK'", u'R': [0, 0, 0, 1], u'T': [-0.5, -0.313126, -0.8705], u'ID': u"'http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_ZDOBXQRG'"}]
----------------------
before lock
sending belief_at_update('http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_ZDOBXQRG', ['map', _, [1.1675,-0.276874,0.8705], [0.0,0.0,-0.0,1.0]])
solutions [True]
----------------------
before lock
sending belief_new_object(dmshop:'DMShelfFrameFrontStore', ID), rdf_assert('http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI', knowrob:properPhysicalParts, ID, belief_state),object_affordance_static_transform(ID, A, [_,_,T,R]),rdfs_individual_of(A, dmshop:'DMShelfPerceptionAffordance')
solutions [{u'A': u"'http://knowrob.org/kb/dm-market.owl#DMShelfPerceptionAffordanceFrameFront_NHOFPRJV'", u'R': [0, 0, 0, 1], u'T': [-0.5, -0.313126, -0.8705], u'ID': u"'http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_JWSERDIC'"}]
----------------------
before lock
sending belief_at_update('http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_JWSERDIC', ['map', _, [2.165,-0.276874,0.8705], [0.0,0.0,-0.0,1.0]])
solutions [True]
----------------------
before lock
sending belief_new_object(dmshop:'DMShelfFrameFrontStore', ID), rdf_assert('http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI', knowrob:properPhysicalParts, ID, belief_state),object_affordance_static_transform(ID, A, [_,_,T,R]),rdfs_individual_of(A, dmshop:'DMShelfPerceptionAffordance')
solutions [{u'A': u"'http://knowrob.org/kb/dm-market.owl#DMShelfPerceptionAffordanceFrameFront_MESTDCGB'", u'R': [0, 0, 0, 1], u'T': [-0.5, -0.313126, -0.8705], u'ID': u"'http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_XREDIQGU'"}]
----------------------
before lock
sending belief_at_update('http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_XREDIQGU', ['map', _, [3.165,-0.276874,0.8705], [0.0,0.0,-0.0,1.0]])
solutions [True]
----------------------
before lock
sending belief_new_object(dmshop:'DMShelfFrameFrontStore', ID), rdf_assert('http://knowrob.org/kb/dm-market.owl#DMShelfSystem_DLPXCBMI', knowrob:properPhysicalParts, ID, belief_state),object_affordance_static_transform(ID, A, [_,_,T,R]),rdfs_individual_of(A, dmshop:'DMShelfPerceptionAffordance')
solutions [{u'A': u"'http://knowrob.org/kb/dm-market.owl#DMShelfPerceptionAffordanceFrameFront_RBOWPNDU'", u'R': [0, 0, 0, 1], u'T': [-0.5, -0.313126, -0.8705], u'ID': u"'http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_PMSBLUFH'"}]
----------------------
before lock
sending belief_at_update('http://knowrob.org/kb/dm-market.owl#DMShelfFrameFrontStore_PMSBLUFH', ['map', _, [4.165,-0.276874,0.8705], [0.0,0.0,-0.0,1.0]])
solutions [True]
----------------------
add new shelf system? [y]
[INFO] [1524051632.014475]: MAKE SURE NOTHING IS CLOSE!!!!11elf
rdy? [y]y
before lock
sending cram_start_situation('http://knowrob.org/kb/knowrob.owl#RobotExperiment', '1524051644.06', R), rdf_assert(R,knowrob:performedBy,donbot:iai_donbot_robot1, 'LoggingGraph'), rdf_assert(R,knowrob:performedInMap,iaishop:'IAIShop_0', 'LoggingGraph')
solutions [{u'R': u"'http://knowrob.org/kb/knowrob.owl#RobotExperiment_HYGBWEMJ'"}]
----------------------
[INFO] [1524051644.078035]: waiting for scanning action goal
now use the gui to scan the shit out of the shelves.
start barcode detector in an amy terminal:
source /home/stelter/refills_ws/devel/setup.bash
roslaunch barcode_detector refills_find_barcode.launch