Skip to content

Commit 08c1447

Browse files
committed
Merge branch 'master' into ros2
2 parents dc8399f + d5e1376 commit 08c1447

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
CLANG_TIDY_ARGS: -quiet -export-fixes ${{ github.workspace }}/.work/clang-tidy-fixes.yaml
4141
DOCKER_IMAGE: moveit/moveit2:${{ matrix.env.IMAGE }}
4242
UNDERLAY: ${{ endsWith(matrix.env.IMAGE, '-source') && '/root/ws_moveit/install' || ''}}
43-
# TODO: Port to ROS2
44-
# DOWNSTREAM_WORKSPACE: "github:ubi-agni/mtc_demos#master github:TAMS-Group/mtc_pour#master"
4543
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
4644
CCACHE_DIR: ${{ github.workspace }}/.ccache
4745
BASEDIR: ${{ github.workspace }}/.work

core/cmake/pybind11.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pybind11 must use the ROS python version
2-
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION_STRING})
2+
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION})
33

44
if(@INSTALLSPACE@)
55
include(${CMAKE_CURRENT_LIST_DIR}/pybind11Config.cmake)

core/python/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
find_package(ament_cmake_python REQUIRED)
44
find_package(Python3 COMPONENTS Interpreter Development)
5+
# pybind11 must use the ROS python version
6+
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION})
57

68
# Use minimum-size optimization for pybind11 bindings
79
add_compile_options("-Os")

core/python/bindings/src/core.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ void export_core(pybind11::module& m) {
414414

415415
.def("loadRobotModel", &Task::loadRobotModel, "node"_a, "robot_description"_a = "robot_description",
416416
"Load robot model from given ROS parameter")
417+
.def("setRobotModel", &Task::setRobotModel, "robot_model"_a, "Set the robot model for the task")
417418
.def("getRobotModel", &Task::getRobotModel)
418419
.def("enableIntrospection", &Task::enableIntrospection, "enabled"_a = true,
419420
"Enable publishing intermediate results for inspection in ``rviz``")

0 commit comments

Comments
 (0)