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 Apr 27, 2016
1 parent 9de2832 commit c0bcc3d
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(jsk_tools REQUIRED)
jsk_tools_add_shell_test(COMMAND "rosrun ${PROJECT_NAME} test_pr2.sh" DEPENDENCIES generate_pr2_lisp)
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 c0bcc3d

Please sign in to comment.