Skip to content

Commit

Permalink
check if simulation-mode before init-test, to detect if rostset gazeb…
Browse files Browse the repository at this point in the history
…o is failing...
  • Loading branch information
k-okada committed Apr 4, 2018
1 parent cc778f0 commit 790032f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pr2eus/test/pr2-ri-test.l
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
(require :unittest "lib/llib/unittest.l")
(load "package://pr2eus/pr2-interface.l")

(init-unit-test)

(setq *pr2* (pr2))

(while (or (not (boundp '*ri*)) (send *ri* :simulation-modep))
(setq *ri* (instance pr2-interface :init)))

(when (send *ri* :simulation-modep)
(ros::ros-warn "*ri* is running with simulation mode, something goes wrong ....")
(sys::exit 1))

(init-unit-test)

(deftest test-wait-interpolation
(ros::ros-info "send reset-pose and wait-interpolation")
(assert (send *pr2* :reset-pose))
Expand Down

0 comments on commit 790032f

Please sign in to comment.