Skip to content

Commit d14dc37

Browse files
committed
update to work with sdf12 branch
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
1 parent 3b292c6 commit d14dc37

File tree

11 files changed

+24
-332
lines changed

11 files changed

+24
-332
lines changed

.github/ci/packages.apt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
libignition-common4-dev
21
libignition-cmake2-dev
32
libignition-common4-dev
43
libignition-math6-dev

usd/include/sdf/usd/World.hh

-53
This file was deleted.

usd/include/sdf/usd/Light.hh usd/include/sdf/usd/sdf_parser/Light.hh

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
*
1616
*/
1717

18-
#ifndef SDF_USD_LIGHT_HH_
19-
#define SDF_USD_LIGHT_HH_
18+
#ifndef SDF_USD_SDF_PARSER_LIGHT_HH_
19+
#define SDF_USD_SDF_PARSER_LIGHT_HH_
2020

2121
#include <string>
2222

23+
// TODO(adlarkin):this is to remove deprecated "warnings" in usd, these warnings
24+
// are reported using #pragma message so normal diagnostic flags cannot remove
25+
// them. This workaround requires this block to be used whenever usd is
26+
// included.
2327
#pragma push_macro ("__DEPRECATED")
2428
#undef __DEPRECATED
2529
#include <pxr/usd/usd/stage.h>

usd/include/sdf/usd/Utils.hh usd/include/sdf/usd/sdf_parser/Utils.hh

+9-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,24 @@
1515
*
1616
*/
1717

18-
#ifndef SDF_USD_UTILS_HH_
19-
#define SDF_USD_UTILS_HH_
18+
#ifndef SDF_USD_SDF_PARSER_UTILS_HH_
19+
#define SDF_USD_SDF_PARSER_UTILS_HH_
2020

2121
#include <ignition/math/Angle.hh>
2222
#include <ignition/math/Pose3.hh>
2323
#include <ignition/math/Vector3.hh>
2424
#include <ignition/math/Quaternion.hh>
25-
#include <pxr/base/gf/vec3d.h>
25+
26+
// TODO(adlarkin):this is to remove deprecated "warnings" in usd, these warnings
27+
// are reported using #pragma message so normal diagnostic flags cannot remove
28+
// them. This workaround requires this block to be used whenever usd is
29+
// included.
2630
#pragma push_macro ("__DEPRECATED")
2731
#undef __DEPRECATED
32+
#include <pxr/base/gf/vec3d.h>
2833
#include <pxr/usd/usd/stage.h>
29-
#pragma pop_macro ("__DEPRECATED")
3034
#include <pxr/usd/usdGeom/xformCommonAPI.h>
35+
#pragma pop_macro ("__DEPRECATED")
3136

3237
#include "sdf/SemanticPose.hh"
3338
#include "sdf/config.hh"

usd/src/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(sources
2+
sdf_parser/Light.cc
23
sdf_parser/World.cc
34
)
45

@@ -17,6 +18,7 @@ target_link_libraries(${usd_target}
1718

1819
set(gtest_sources
1920
sdf_parser/sdf2usd_TEST.cc
21+
sdf_parser/Light_Sdf2Usd_TEST.cc
2022
sdf_parser/World_Sdf2Usd_TEST.cc
2123
)
2224

@@ -25,9 +27,7 @@ ign_build_tests(
2527
TYPE UNIT
2628
SOURCES ${gtest_sources}
2729
LIB_DEPS ${usd_target} ignition-cmake${IGN_CMAKE_VER}::utilities
28-
INCLUDE_DIRS
29-
${CMAKE_CURRENT_SOURCE_DIR}
30-
${PROJECT_SOURCE_DIR}/test
30+
INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/test
3131
)
3232

3333
add_subdirectory(cmd)

usd/src/World.cc

-88
This file was deleted.

usd/src/World_Sdf2Usd_TEST.cc

-91
This file was deleted.

usd/src/sdf2usd_TEST.cc

-84
This file was deleted.

0 commit comments

Comments
 (0)