Skip to content

Commit

Permalink
Test predefined pose methods in generated pr2 model
Browse files Browse the repository at this point in the history
Modified:
  - euscollada/CMakeLists.txt
Added:
  - euscollada/test/test_pr2.sh
  • Loading branch information
wkentaro committed Aug 30, 2016
1 parent bf16bb5 commit d117394
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions euscollada/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ if (EXISTS ${pr2_xacro})
message(WARNING "urdf_to_collada requries collada-dom >= 2.4.4, installed version is ${COLLADA_VERSION}")
endif()
endif()


if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest(test/euscollada-test.launch)
endif()
12 changes: 12 additions & 0 deletions euscollada/test/test_pr2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

rosrun roseus roseus lib/llib/unittest.l "(init-unit-test)" "\
(progn
(load \"package://euscollada/pr2.l\")
(pr2)
(send *pr2* :reset-pose)
(send *pr2* :reset-pose :larm)
(send *pr2* :reset-pose :rarm)
(exit)
)
"

0 comments on commit d117394

Please sign in to comment.