Skip to content

Commit 1805017

Browse files
authored
Merge pull request #388 from mebbaid/aerostack2
add aerostack packages in linux64
2 parents 8a6afb4 + 63c4953 commit 1805017

3 files changed

Lines changed: 93 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
diff --git a/detect_aruco_markers_behavior/src/detect_aruco_markers_behavior.cpp b/detect_aruco_markers_behavior/src/detect_aruco_markers_behavior.cpp
2+
index ce4a7522..640e5a3a 100644
3+
--- a/detect_aruco_markers_behavior/src/detect_aruco_markers_behavior.cpp
4+
+++ b/detect_aruco_markers_behavior/src/detect_aruco_markers_behavior.cpp
5+
@@ -85,8 +85,9 @@ void DetectArucoMarkersBehavior::loadParameters()
6+
RCLCPP_INFO(get_logger(), "Params: aruco_size: %.3f m", aruco_size_);
7+
8+
// TODO(david): Load dictionary from param
9+
- aruco_dict_ = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250);
10+
+ //aruco_dict_ = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250);
11+
// aruco_dict_ = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_5X5_1000);
12+
+ aruco_dict_ = cv::makePtr<cv::aruco::Dictionary>(cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250));
13+
}
14+
15+
// SIMULATION
16+
@@ -161,7 +162,8 @@ void DetectArucoMarkersBehavior::imageCallback(const sensor_msgs::msg::Image::Sh
17+
// init ArUco detection
18+
std::vector<int> marker_ids;
19+
std::vector<std::vector<cv::Point2f>> marker_corners, rejected_candidates;
20+
- cv::Ptr<cv::aruco::DetectorParameters> detector_params = cv::aruco::DetectorParameters::create();
21+
+ //cv::Ptr<cv::aruco::DetectorParameters> detector_params = cv::aruco::DetectorParameters::create();
22+
+ cv::Ptr<cv::aruco::DetectorParameters> detector_params = cv::makePtr<cv::aruco::DetectorParameters>();
23+
24+
// detect markers on the fisheye, it's no worth it to detect over the rectified image
25+
cv::aruco::detectMarkers(
26+
diff --git a/CMakeLists.txt b/CMakeLists.txt
27+
index 643ca101..612f51c3 100644
28+
--- a/CMakeLists.txt
29+
+++ b/CMakeLists.txt
30+
@@ -35,6 +35,7 @@ set(PROJECT_DEPENDENCIES
31+
foreach(DEPENDENCY ${PROJECT_DEPENDENCIES})
32+
find_package(${DEPENDENCY} REQUIRED)
33+
endforeach()
34+
+find_package(GeographicLib REQUIRED)
35+
36+
# List of behaviors
37+
set(BEHAVIORS_LIST

patch/ros-humble-as2-core.patch

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index f33fc523..4ee0d389 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -51,13 +51,14 @@ set(PROJECT_DEPENDENCIES
6+
yaml-cpp
7+
image_transport
8+
cv_bridge
9+
- geographic_msgs)
10+
+ geographic_msgs
11+
+ GeographicLib)
12+
13+
foreach(DEPENDENCY ${PROJECT_DEPENDENCIES})
14+
find_package(${DEPENDENCY} REQUIRED)
15+
endforeach()
16+
17+
-find_package(GeographicLib REQUIRED)
18+
+# find_package(GeographicLib REQUIRED)
19+
20+
# Pybind11
21+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
22+
@@ -82,8 +83,15 @@ set(SOURCE_CPP_FILES
23+
24+
# Create the library
25+
add_library(${PROJECT_NAME} STATIC ${SOURCE_CPP_FILES})
26+
-target_link_libraries(${PROJECT_NAME} yaml-cpp)
27+
-target_link_libraries(${PROJECT_NAME} ${GeographicLib_LIBRARIES})
28+
+if(TARGET GeographicLib::GeographicLib)
29+
+ set(GEOLIBS GeographicLib::GeographicLib)
30+
+elseif(DEFINED GeographicLib_LIBRARIES)
31+
+ set(GEOLIBS ${GeographicLib_LIBRARIES})
32+
+else()
33+
+ message(FATAL_ERROR "GeographicLib not found (no GeographicLib::GeographicLib target and no GeographicLib_LIBRARIES).")
34+
+endif()
35+
+
36+
+target_link_libraries(${PROJECT_NAME} yaml-cpp ${GEOLIBS})
37+
38+
# Mocks library
39+
set(MOCKS_LIBRARY_NAME mocks)
40+
diff --git a/package.xml b/package.xml
41+
index cad667e8..d8ddb4c3 100644
42+
--- a/package.xml
43+
+++ b/package.xml
44+
@@ -30,7 +30,10 @@
45+
<depend>image_transport</depend>
46+
<depend>cv_bridge</depend>
47+
48+
- <depend>geographiclib</depend>
49+
+ <!-- <depend>geographiclib</depend> -->
50+
+ <build_depend>geographiclib</build_depend>
51+
+ <build_export_depend>geographiclib</build_export_depend>
52+
+ <exec_depend>geographiclib</exec_depend>
53+
<depend>yaml-cpp</depend>
54+
<depend>eigen</depend>
55+
<depend>pybind11-dev</depend>

vinca.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ packages_select_by_deps:
376376
# Franka robots suppot
377377
# See https://github.com/RoboStack/ros-humble/pull/338#issuecomment-3146453142 for macos and Windows errors
378378
- franka_ros2
379+
- aerostack2
379380

380381

381382
# These packages are currently not build on Windows, but they may with some work

0 commit comments

Comments
 (0)