Skip to content

Commit

Permalink
Merge pull request #469 from k-okada/test_446
Browse files Browse the repository at this point in the history
test check apply_planning_scene before creating collision-object-publisher/*ci* without MoveIt
  • Loading branch information
k-okada committed Nov 22, 2021
2 parents c3dd6ef + 718b585 commit 990f974
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pr2eus_moveit/euslisp/collision-object-publisher.l
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(defmethod collision-object-publisher
(:init (&key (service-name "apply_planning_scene")
(scene-service "get_planning_scene")
(service-wait-time -1))
(service-wait-time 30))
(unless (ros::ok) (ros::roseus "publish_collision_eusobj"))
(setq object-list (make-hash-table))
(setq attached-object-list (make-hash-table))
Expand Down
8 changes: 8 additions & 0 deletions pr2eus_moveit/test/test-pr2eus-moveit-sim.l
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env roseus

;; test code to check pr2eus_moveit without MoveIt instance

(require :unittest "lib/llib/unittest.l")
(init-unit-test)

Expand All @@ -14,5 +16,11 @@
(assert ret "angle-vector-motion-plan returns something")
))

;; check https://github.com/jsk-ros-pkg/jsk_pr2eus/pull/446 to avoid jsk-ros-pkg/jsk_robot#1264 problem
(deftest test-init-collision-object-publisher
(setq ret (instance collision-object-publisher :init))
(assert ret "(instance collision-object-publisher :init)"))


(run-all-tests)
(exit)
3 changes: 3 additions & 0 deletions pr2eus_moveit/test/test-pr2eus-moveit-sim.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<launch>

<!-- test code to check pr2eus_moveit without MoveIt instance -->

<arg name="DISPLAY" default="" />

<env name="DISPLAY" value="$(arg DISPLAY)" />
Expand Down

0 comments on commit 990f974

Please sign in to comment.