Skip to content

Commit 795199b

Browse files
authored
Merge pull request #2680 from gazebosim/scpeters/merge_9_main
Merge gz-sim9 ➡️ main
2 parents 0892997 + 9bad81c commit 795199b

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

examples/plugin/custom_sensor_system/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include(FetchContent)
2020
FetchContent_Declare(
2121
sensors_clone
2222
GIT_REPOSITORY https://github.com/gazebosim/gz-sensors
23-
GIT_TAG main
23+
GIT_TAG gz-sensors${GZ_SENSORS_VER}
2424
)
2525
FetchContent_Populate(sensors_clone)
2626
add_subdirectory(${sensors_clone_SOURCE_DIR}/examples/custom_sensor ${sensors_clone_BINARY_DIR})

python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if (BUILD_TESTING)
105105
endif()
106106

107107
set(_env_vars)
108-
list(APPEND _env_vars "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python/")
108+
list(APPEND _env_vars "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python/:$ENV{PYTHONPATH}")
109109
list(APPEND _env_vars "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:$ENV{LD_LIBRARY_PATH}")
110110
set_tests_properties(${test} PROPERTIES
111111
ENVIRONMENT "${_env_vars}")

src/systems/multicopter_motor_model/MulticopterMotorModel.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ void MulticopterMotorModel::PreUpdate(const UpdateInfo &_info,
411411

412412
const auto parentLinkName = _ecm.Component<components::ParentLinkName>(
413413
this->dataPtr->jointEntity);
414-
this->dataPtr->parentLinkName = parentLinkName->Data();
414+
if (parentLinkName)
415+
this->dataPtr->parentLinkName = parentLinkName->Data();
415416
}
416417

417418
if (this->dataPtr->linkEntity == kNullEntity)

src/systems/optical_tactile_plugin/OpticalTactilePlugin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ void OpticalTactilePluginPrivate::Enable(const gz::msgs::Boolean &_req)
632632

633633
this->enabled = _req.data();
634634

635-
if (!_req.data())
635+
if (!_req.data() && this->visualizePtr)
636636
{
637637
this->visualizePtr->RemoveNormalForcesAndContactsMarkers();
638638
}

test/integration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,5 @@ endif()
246246

247247
if (TARGET INTEGRATION_python_system_loader)
248248
set_tests_properties(INTEGRATION_python_system_loader PROPERTIES
249-
ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python/")
249+
ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python/:$ENV{PYTHONPATH}")
250250
endif()

0 commit comments

Comments
 (0)