Skip to content

Commit 4b5cef0

Browse files
authored
creo2urdf: retrieve more information from the asm (#14)
2 parents ce2d317 + 3614bca commit 4b5cef0

File tree

11 files changed

+331
-135
lines changed

11 files changed

+331
-135
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ include(GNUInstallDirs)
1212
include(FeatureSummary)
1313

1414
find_package(YCM 0.12 REQUIRED)
15+
# Needed for https://github.com/robotology/idyntree/issues/1065
16+
find_package(Eigen3 REQUIRED)
17+
find_package(iDynTree REQUIRED)
1518
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
1619

1720
# Control where libraries and executables are placed during the build.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# creo2urdf
22
Generate URDF model from CREO mechanisms.
33

4+
## Installation
5+
6+
### Dependencies
7+
Right now `creo2urdf` plugin needs that the dependencies are compiled and linked **statically**:
8+
- Download [vcpkg](https://github.com/microsoft/vcpkg): `git clone https://github.com/microsoft/vcpkg`
9+
- Bootstrap vcpkg: `.\vcpkg\bootstrap-vcpkg.bat`
10+
- Run `[path to vcpkg]/vcpkg install --triplet x64-windows-static-md eigen3 libxml2 assimp`
11+
- Compile idyntree from source following the instructions in https://github.com/robotology/idyntree/blob/master/doc/build-from-source.md, remembering to pass `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md` and `-DBUILD_SHARED_LIBS:BOOL=OFF` to ensure that iDynTree is compiled as static.
12+
- Install iDynTree
13+
14+
### Build `creo2urdf`
15+
16+
- Pass `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md` to the creo2urdf compilation, remembering also to pass the iDynTree's installaton location via `CMAKE_PREFIX_PATH`.
17+
18+
For who uses CMake integrate in Visual Studio `-DCMAKE_TOOLCHAIN_FILE` option has not to be passed to `CMake command arguments` but in the `vcpkg.cmake` file path has to be set in `CMake toolchain file`
19+
20+
421
### Maintainers
522
This repository is maintained by:
623

src/creo2urdf/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ add_compile_definitions(creo2urdf PUBLIC PRO_MACHINE=36
5656
PRO_OS=4)
5757

5858
# Link dependencies
59-
target_link_libraries(creo2urdf PUBLIC protk_dllmd_NU
59+
target_link_libraries(creo2urdf PRIVATE iDynTree::idyntree-modelio
60+
iDynTree::idyntree-high-level
61+
protk_dllmd_NU
6062
otk_cpp_md
6163
otk_no222_md
6264
ucore
@@ -67,6 +69,8 @@ target_link_libraries(creo2urdf PUBLIC protk_dllmd_NU
6769
mpr
6870
netapi32)
6971

72+
73+
7074
# FIXME all these win32 libraries that are used by protk dll have to be set as dependencies of the target
7175
## FIXME
7276
list(APPEND CREO2URDF_PUBLIC_DEPS)

src/creo2urdf/app/protk.dat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
NAME creo2urdf
2+
STARTUP dll
3+
EXEC_FILE <repository-parent-path>\creo2urdf\build\x64-Release\bin\creo2urdf.dll
4+
TEXT_DIR <repository-parent-path>\creo2urdf\src\creo2urdf\text\
5+
DELAY_START true
6+
ALLOW_STOP true
7+
END
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (C) 2006-2023 Istituto Italiano di Tecnologia (IIT)
3+
* All rights reserved.
4+
*
5+
* This software may be modified and distributed under the terms of the
6+
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7+
*/

0 commit comments

Comments
 (0)