rename example to check_kdl_parser to match urdf
This commit is contained in:
parent
c2ed97c01c
commit
efb5225fc3
|
@ -25,8 +25,8 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
|
||||||
|
|
||||||
rosbuild_add_library(${PROJECT_NAME} src/kdl_parser.cpp)
|
rosbuild_add_library(${PROJECT_NAME} src/kdl_parser.cpp)
|
||||||
|
|
||||||
rosbuild_add_executable(example test/example.cpp )
|
rosbuild_add_executable(check_kdl_parser src/check_kdl_parser.cpp )
|
||||||
target_link_libraries(example ${PROJECT_NAME})
|
target_link_libraries(check_kdl_parser ${PROJECT_NAME})
|
||||||
|
|
||||||
rosbuild_add_executable(test_parser test/test_kdl_parser.cpp )
|
rosbuild_add_executable(test_parser test/test_kdl_parser.cpp )
|
||||||
target_link_libraries(test_parser ${PROJECT_NAME})
|
target_link_libraries(test_parser ${PROJECT_NAME})
|
||||||
|
|
|
@ -43,10 +43,14 @@ using namespace KDL;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace urdf;
|
using namespace urdf;
|
||||||
|
|
||||||
int main()
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (argc < 2){
|
||||||
|
std::cerr << "Expect xml file to parse" << std::endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
Model robot_model;
|
Model robot_model;
|
||||||
if (!robot_model.initFile("pr2.urdf"))
|
if (!robot_model.initFile(argv[1]))
|
||||||
{cerr << "Could not generate robot model" << endl; return false;}
|
{cerr << "Could not generate robot model" << endl; return false;}
|
||||||
|
|
||||||
Tree my_tree;
|
Tree my_tree;
|
Loading…
Reference in New Issue