Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Windows #530

Merged
merged 63 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f7bcbf4
Attempt to find FCL using find_package as well
Ace314159 May 31, 2021
b052b20
Add visibility control to collision detection fcl
Ace314159 May 31, 2021
1f7364f
Add visibility control to kinematics base
Ace314159 May 31, 2021
76fd181
Fix linking boost for core
Ace314159 May 31, 2021
9697043
Add visibility control to planning scene
Ace314159 May 31, 2021
8b3fab6
Add visibility control to perception mesh filter
Ace314159 May 31, 2021
bf9b4f8
Undefine near and far for mesh filter
Ace314159 May 31, 2021
c2b6ff5
Add visibility control to planning scene monitor
Ace314159 May 31, 2021
a58a8f4
Use _popen in rdf loader on windows
Ace314159 May 31, 2021
456510d
Include boost.bind where missing
Ace314159 May 31, 2021
aab2311
Include deque in trajectory execution manager
Ace314159 May 31, 2021
db222ea
Build build error for moveit ros warehouse connector
Ace314159 May 31, 2021
854b59c
Add visibility control to moveit ros warehouse
Ace314159 May 31, 2021
f45b55b
Fix includes for BenchmarkExecutor
Ace314159 Jun 3, 2021
dacbc6b
Link to ws2_32.lib on windows in moveit ros benchmarks
Ace314159 Jun 3, 2021
cec69c6
Add visibility control to moveit ros planning pipeline
Ace314159 Jun 3, 2021
da953f5
Add visibility control to trajectory execution manager
Ace314159 Jun 5, 2021
44fb70a
Attempt to find FCL using find_package first
Ace314159 Jun 5, 2021
373ebec
Add visibility control to moveit move group interface
Ace314159 Jun 9, 2021
bc47f0d
Add visibility control to moveit ros robot interaction
Ace314159 Jun 9, 2021
bc6ca7a
Add visibility control to moveit planning scene rviz plugin
Ace314159 Jun 9, 2021
12bc306
Replace uint with unsigned int
Ace314159 Jun 9, 2021
317e3b8
Add visibility control to collision detection
Ace314159 Jun 11, 2021
f8f6c07
Fix errors in p2_arm_kinematics_plugin
Ace314159 Jun 11, 2021
68219a9
Fix MSVC build in collision detection fcl tests
Ace314159 Jun 11, 2021
7cc99c4
Remove extra args for boost linking
Ace314159 Jun 26, 2021
b3c4485
Sync with MoveIt's master branch up-to https://github.com/ros-plannin…
JafarAbdi Jun 28, 2021
4a210bc
Compilation fixes for MoveIt on macOS (#498)
nkalupahana Jun 28, 2021
b1d1de4
Enable Bullet and fix plugin configuration (#489)
jrgnicho Jun 28, 2021
e660ec9
Add prerelease tests (#502)
Jun 28, 2021
53d0a3e
Clean warehouse_ros OpenSSL depend (#514)
Jun 28, 2021
91f2a24
Merge with upstream
Ace314159 Jun 28, 2021
604c974
Fix finding bullet on windows
Ace314159 Jun 29, 2021
6ee637e
Fix MSVC build in collision detection bullet tests
Ace314159 Jun 29, 2021
7c2953e
Add visibility control to collision detection bullet
Ace314159 Jun 29, 2021
1ac25de
Fix include deprecation warning
Ace314159 Jun 29, 2021
571885b
Fix building moveit_servo
Ace314159 Jun 30, 2021
cb33e46
Merge with upstream
Ace314159 Jun 30, 2021
6bfb830
Merge remote-tracking branch 'upstream/main' into main
Ace314159 Jun 30, 2021
6e52f8e
Merge remote-tracking branch 'upstream/main' into main
Ace314159 Jul 1, 2021
285a214
Run pre-commit
Ace314159 Jul 1, 2021
de9bd9c
Fix CI
Ace314159 Jul 1, 2021
3936e8a
Merge branch 'main' into main
Ace314159 Jul 1, 2021
112c926
Fix visibility control includes
Ace314159 Jul 2, 2021
6407d14
Add license to visibility control
Ace314159 Jul 2, 2021
6d14df0
Use same naming convention for visibility control
Ace314159 Jul 2, 2021
2eeb5e0
Fix merge issues
Ace314159 Jul 2, 2021
6c14a3d
Run pre-commit
Ace314159 Jul 2, 2021
fb40705
Always use find_package for bullet and FCL
Ace314159 Jul 8, 2021
e7d402a
Use Bullet instead of BULLET
Ace314159 Jul 8, 2021
d084113
Use fcl instead of FCL
Ace314159 Jul 8, 2021
e16ab21
Use pkg-config for FCL
Ace314159 Jul 8, 2021
a3885d9
Fix
Ace314159 Jul 8, 2021
e53a6ae
Fix linking fcl deps and only use pkg-config
Ace314159 Jul 10, 2021
f31f387
Replace ${GLEW_LIBRARIES} with GLEW::glew for Windows
Ace314159 Jul 10, 2021
84140cf
Switch to generated visibility headers
Ace314159 Jul 17, 2021
e14af58
Run pre-commit
Ace314159 Jul 17, 2021
dab2a7d
Merge remote-tracking branch 'upstream/main' into main
Ace314159 Jul 17, 2021
df9ae8d
exported whole classes to fix linker errors
lilustga Jul 19, 2021
81d2ca3
Export the other classes too
Ace314159 Jul 20, 2021
62526de
Run pre-commit
Ace314159 Jul 20, 2021
b6ddc79
Fix merge conflicts
Ace314159 Jul 24, 2021
4b83cfd
Merge remote-tracking branch 'upstream/main' into main
Ace314159 Jul 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions moveit_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ find_package(Eigen3 REQUIRED)
# Finds Boost Components
include(ConfigExtras.cmake)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")

find_package(Bullet 2.87 REQUIRED)

find_package(PkgConfig REQUIRED)

pkg_check_modules(LIBFCL REQUIRED "fcl>=0.5.0")
# replace LIBFCL_LIBRARIES with full path to the library
find_library(LIBFCL_LIBRARIES_FULL ${LIBFCL_LIBRARIES} ${LIBFCL_LIBRARY_DIRS})
# replace LIBFCL_LIBRARIES with full paths to the libraries
set(LIBFCL_LIBRARIES_FULL "")
foreach(LIBFCL_LIBRARY ${LIBFCL_LIBRARIES})
find_library(${LIBFCL_LIBRARY}_LIB ${LIBFCL_LIBRARY} ${LIBFCL_LIBRARY_DIRS})
list(APPEND LIBFCL_LIBRARIES_FULL ${${LIBFCL_LIBRARY}_LIB})
endforeach()
set(LIBFCL_LIBRARIES "${LIBFCL_LIBRARIES_FULL}")

find_package(Bullet 2.87 REQUIRED)
find_package(angles REQUIRED)
find_package(OCTOMAP REQUIRED)
find_package(urdfdom REQUIRED)
Expand Down
10 changes: 0 additions & 10 deletions moveit_core/CMakeModules/FindBULLET.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions moveit_core/ConfigExtras.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Extras module needed for dependencies to find boost components

# boost::iostreams on Windows depends on boost::zlib
if(WIN32)
set(EXTRA_BOOST_COMPONENTS zlib)
endif()
find_package(Boost REQUIRED
chrono
date_time
Expand All @@ -14,5 +10,4 @@ find_package(Boost REQUIRED
serialization
system
thread
${EXTRA_BOOST_COMPONENTS}
)
5 changes: 4 additions & 1 deletion moveit_core/collision_detection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ add_library(${MOVEIT_LIB_NAME} SHARED
src/world_diff.cpp
src/collision_env.cpp
)

include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION ${${PROJECT_NAME}_VERSION})
ament_target_dependencies(${MOVEIT_LIB_NAME}
rclcpp
Expand Down Expand Up @@ -51,3 +53,4 @@ if(BUILD_TESTING)
endif()

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
#include <moveit/collision_detection/collision_detector_allocator.h>
#include <moveit/collision_detection/allvalid/collision_env_allvalid.h>

#include "moveit_collision_detection_export.h"

namespace collision_detection
{
/** \brief An allocator for AllValid collision detectors */
class CollisionDetectorAllocatorAllValid
class MOVEIT_COLLISION_DETECTION_EXPORT CollisionDetectorAllocatorAllValid
: public CollisionDetectorAllocatorTemplate<CollisionEnvAllValid, CollisionDetectorAllocatorAllValid>
{
public:
Expand Down
16 changes: 13 additions & 3 deletions moveit_core/collision_detection_bullet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ add_library(${MOVEIT_LIB_NAME} SHARED
src/bullet_integration/contact_checker_common.cpp
src/bullet_integration/ros_bullet_utils.cpp
)
include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
ament_target_dependencies(${MOVEIT_LIB_NAME} SYSTEM
BULLET
Expand Down Expand Up @@ -44,6 +47,7 @@ target_link_libraries(collision_detector_bullet_plugin
)

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)
install(TARGETS ${MOVEIT_LIB_NAME} EXPORT ${MOVEIT_LIB_NAME}
TARGETS collision_detector_bullet_plugin EXPORT collision_detector_bullet_plugin
LIBRARY DESTINATION lib
Expand All @@ -61,15 +65,21 @@ if(BUILD_TESTING)
ament_add_gtest(test_bullet_collision_detection test/test_bullet_collision_detection_pr2.cpp)
target_link_libraries(test_bullet_collision_detection moveit_test_utils ${MOVEIT_LIB_NAME})
# TODO: remove if transition to gtest's new API TYPED_TEST_SUITE_P is finished
target_compile_options(test_bullet_collision_detection PRIVATE -Wno-deprecated-declarations)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Ace314159 marked this conversation as resolved.
Show resolved Hide resolved
target_compile_options(test_bullet_collision_detection PRIVATE -Wno-deprecated-declarations)
endif()

ament_add_gtest(test_bullet_collision_detection_panda test/test_bullet_collision_detection_panda.cpp)
target_link_libraries(test_bullet_collision_detection_panda moveit_test_utils ${MOVEIT_LIB_NAME})
# TODO: remove if transition to gtest's new API TYPED_TEST_SUITE_P is finished
target_compile_options(test_bullet_collision_detection_panda PRIVATE -Wno-deprecated-declarations)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(test_bullet_collision_detection_panda PRIVATE -Wno-deprecated-declarations)
endif()

ament_add_gtest(test_bullet_continuous_collision_checking test/test_bullet_continuous_collision_checking.cpp)
target_link_libraries(test_bullet_continuous_collision_checking moveit_test_utils ${MOVEIT_LIB_NAME})
# TODO: remove if transition to gtest's new API TYPED_TEST_SUITE_P is finished
target_compile_options(test_bullet_continuous_collision_checking PRIVATE -Wno-deprecated-declarations)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(test_bullet_continuous_collision_checking PRIVATE -Wno-deprecated-declarations)
endif()
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
#include <moveit/collision_detection/collision_detector_allocator.h>
#include <moveit/collision_detection_bullet/collision_env_bullet.h>

#include "moveit_collision_detection_bullet_export.h"

namespace collision_detection
{
/** \brief An allocator for Bullet collision detectors */
class CollisionDetectorAllocatorBullet
class MOVEIT_COLLISION_DETECTION_BULLET_EXPORT CollisionDetectorAllocatorBullet
: public CollisionDetectorAllocatorTemplate<CollisionEnvBullet, CollisionDetectorAllocatorBullet>
{
public:
Expand Down
12 changes: 10 additions & 2 deletions moveit_core/collision_detection_fcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ add_library(${MOVEIT_LIB_NAME} SHARED
src/collision_common.cpp
src/collision_env_fcl.cpp
)
include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
ament_target_dependencies(${MOVEIT_LIB_NAME}
rclcpp
Expand Down Expand Up @@ -34,6 +37,7 @@ target_link_libraries(collision_detector_fcl_plugin
)

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)

if(BUILD_TESTING)
if(WIN32)
Expand All @@ -48,10 +52,14 @@ if(BUILD_TESTING)
ament_add_gtest(test_fcl_collision_detection test/test_fcl_collision_detection_pr2.cpp)
target_link_libraries(test_fcl_collision_detection moveit_test_utils ${MOVEIT_LIB_NAME})
# TODO: remove if transition to gtest's new API TYPED_TEST_SUITE_P is finished
target_compile_options(test_fcl_collision_detection PRIVATE -Wno-deprecated-declarations)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Ace314159 marked this conversation as resolved.
Show resolved Hide resolved
target_compile_options(test_fcl_collision_detection PRIVATE -Wno-deprecated-declarations)
endif()

ament_add_gtest(test_fcl_collision_detection_panda test/test_fcl_collision_detection_panda.cpp)
target_link_libraries(test_fcl_collision_detection_panda moveit_test_utils ${MOVEIT_LIB_NAME})
# TODO: remove if transition to gtest's new API TYPED_TEST_SUITE_P is finished
target_compile_options(test_fcl_collision_detection_panda PRIVATE -Wno-deprecated-declarations)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(test_fcl_collision_detection_panda PRIVATE -Wno-deprecated-declarations)
endif()
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
#include <moveit/collision_detection/collision_detector_allocator.h>
#include <moveit/collision_detection_fcl/collision_env_fcl.h>

#include "moveit_collision_detection_fcl_export.h"

namespace collision_detection
{
/** \brief An allocator for FCL collision detectors */
class CollisionDetectorAllocatorFCL
class MOVEIT_COLLISION_DETECTION_FCL_EXPORT CollisionDetectorAllocatorFCL
: public CollisionDetectorAllocatorTemplate<CollisionEnvFCL, CollisionDetectorAllocatorFCL>
{
public:
Expand Down
2 changes: 1 addition & 1 deletion moveit_core/constraint_samplers/test/pr2_arm_ik.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,6 @@ bool PR2ArmIK::checkJointLimits(const double& joint_value, const int& joint_num)
else
jv = angles::normalize_angle(joint_value * angle_multipliers_[joint_num]);

return not(jv < min_angles_[joint_num] || jv > max_angles_[joint_num]);
return !(jv < min_angles_[joint_num] || jv > max_angles_[joint_num]);
}
} // namespace pr2_arm_kinematics
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <kdl_parser/kdl_parser.hpp>
#include <tf2_kdl/tf2_kdl.h>
#include <algorithm>
#include <cmath>

#include <moveit/robot_model/robot_model.h>
#include "pr2_arm_kinematics_plugin.h"
Expand Down Expand Up @@ -240,7 +241,7 @@ double computeEuclideanDistance(const std::vector<double>& array_1, const KDL::J
{
distance += (array_1[i] - array_2(i)) * (array_1[i] - array_2(i));
}
return sqrt(distance);
return std::sqrt(distance);
}

void getKDLChainInfo(const KDL::Chain& chain, moveit_msgs::msg::KinematicSolverInfo& chain_info)
Expand Down
5 changes: 4 additions & 1 deletion moveit_core/kinematics_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.5)
set(MOVEIT_LIB_NAME moveit_kinematics_base)

add_library(${MOVEIT_LIB_NAME} SHARED src/kinematics_base.cpp)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)

# This line is needed to ensure that messages are done being built before this is built
ament_target_dependencies(
Expand All @@ -17,3 +19,4 @@ ament_target_dependencies(
)

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#include <boost/function.hpp>
#include <string>

#include "moveit_kinematics_base_export.h"

namespace moveit
{
namespace core
Expand Down Expand Up @@ -140,7 +142,7 @@ MOVEIT_CLASS_FORWARD(KinematicsBase); // Defines KinematicsBasePtr, ConstPtr, W
* @class KinematicsBase
* @brief Provides an interface for kinematics solvers.
*/
class KinematicsBase
class MOVEIT_KINEMATICS_BASE_EXPORT KinematicsBase
{
public:
static const rclcpp::Logger LOGGER;
Expand Down
4 changes: 4 additions & 0 deletions moveit_core/planning_scene/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
set(MOVEIT_LIB_NAME moveit_planning_scene)

add_library(${MOVEIT_LIB_NAME} SHARED src/planning_scene.cpp)
include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
#TODO: Fix the versioning
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
ament_target_dependencies(${MOVEIT_LIB_NAME}
Expand All @@ -26,6 +29,7 @@ target_link_libraries(${MOVEIT_LIB_NAME}
)

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#include <memory>
#include "rclcpp/rclcpp.hpp"

#include "moveit_planning_scene_export.h"

/** \brief This namespace includes the central class for representing planning contexts */
namespace planning_scene
{
Expand Down Expand Up @@ -85,7 +87,8 @@ using ObjectTypeMap = std::map<std::string, object_recognition_msgs::msg::Object
/** \brief This class maintains the representation of the
environment as seen by a planning instance. The environment
geometry, the robot geometry and state are maintained. */
class PlanningScene : private boost::noncopyable, public std::enable_shared_from_this<PlanningScene>
class MOVEIT_PLANNING_SCENE_EXPORT PlanningScene : private boost::noncopyable,
public std::enable_shared_from_this<PlanningScene>
{
public:
/** \brief construct using an existing RobotModel */
Expand Down
4 changes: 4 additions & 0 deletions moveit_ros/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ add_library(${MOVEIT_LIB_NAME} SHARED
src/BenchmarkExecutor.cpp
)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
if(WIN32)
set(EXTRA_LIB ws2_32.lib)
endif()
ament_target_dependencies(${MOVEIT_LIB_NAME}
${THIS_PACKAGE_INCLUDE_DEPENDS}
)
target_link_libraries(${MOVEIT_LIB_NAME} ${EXTRA_LIB})

add_executable(moveit_run_benchmark src/RunBenchmark.cpp)
ament_target_dependencies(moveit_run_benchmark
Expand Down
3 changes: 3 additions & 0 deletions moveit_ros/benchmarks/src/BenchmarkExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@
#include <boost/math/constants/constants.hpp>
#include <boost/filesystem.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <limits>
#ifndef _WIN32
#include <unistd.h>
#else
#include <winsock2.h>
#endif

#undef max

using namespace moveit_ros_benchmarks;

static const rclcpp::Logger LOGGER = rclcpp::get_logger("moveit.ros.benchmarks.BenchmarkExecutor");
Expand Down
2 changes: 1 addition & 1 deletion moveit_ros/moveit_servo/include/moveit_servo/servo_calcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class ServoCalcs

const int gazebo_redundant_message_count_ = 30;

uint num_joints_;
unsigned int num_joints_;

// True -> allow drift in this dimension. In the command frame. [x, y, z, roll, pitch, yaw]
std::array<bool, 6> drift_dimensions_ = { { false, false, false, false, false, false } };
Expand Down
6 changes: 5 additions & 1 deletion moveit_ros/perception/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ if(WITH_OPENGL)
set(SYSTEM_GL_LIBRARIES ${GLEW_LIBRARIES} GLEW::GLEW FreeGLUT::freeglut)
else()
find_package(GLUT REQUIRED)
set(SYSTEM_GL_LIBRARIES ${GLEW_LIBRARIES} GLUT::GLUT)
if(WIN32)
set(SYSTEM_GL_LIBRARIES GLEW::glew GLUT::GLUT)
else()
set(SYSTEM_GL_LIBRARIES ${GLEW_LIBRARIES} GLUT::GLUT)
endif()
endif()
set(perception_GL_INCLUDE_DIRS "mesh_filter/include" "depth_image_octomap_updater/include")
set(SYSTEM_GL_INCLUDE_DIRS ${GLEW_INCLUDE_DIR} ${GLUT_INCLUDE_DIR})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <stdint.h>

#include <memory>
#include <boost/bind.hpp>

namespace occupancy_map_monitor
{
Expand Down
4 changes: 4 additions & 0 deletions moveit_ros/perception/mesh_filter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ add_library(${MOVEIT_LIB_NAME} SHARED
src/gl_renderer.cpp
src/gl_mesh.cpp
)
include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
ament_target_dependencies(${MOVEIT_LIB_NAME}
rclcpp
Expand Down Expand Up @@ -40,3 +43,4 @@ target_link_libraries(${MOVEIT_LIB_NAME} ${gl_LIBS} ${SYSTEM_GL_LIBRARIES})
# endif()

install(DIRECTORY include/ DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION include)
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
#include <mutex>
#include <map>

#undef near
#undef far

namespace mesh_filter
{
MOVEIT_CLASS_FORWARD(GLRenderer); // Defines GLRendererPtr, ConstPtr, WeakPtr... etc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
#include <moveit/mesh_filter/sensor_model.h>
#include <string>

#include "moveit_mesh_filter_export.h"

namespace mesh_filter
{
/**
* \brief Model for Disparity based devices. E.g stereo camera systems or OpenNI compatible devices
* \author Suat Gedikli <[email protected]>
*/
class StereoCameraModel : public SensorModel
class MOVEIT_MESH_FILTER_EXPORT StereoCameraModel : public SensorModel
{
public:
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <tf2_ros/create_timer_ros.h>

#include <memory>
#include <boost/bind.hpp>

namespace occupancy_map_monitor
{
Expand Down
Loading