Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test check apply_planning_scene before creating collision-object-publisher/*ci* without MoveIt #469

Merged
merged 3 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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