Skip to content

Commit

Permalink
Reproduce ANYbotics#382
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
  • Loading branch information
Ryanf55 committed Jul 31, 2024
1 parent 69c100f commit e65ad9c
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
13 changes: 13 additions & 0 deletions issue382/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.15)
project(issue382)

find_package(grid_map_core REQUIRED)
find_package(Eigen3 CONFIG REQUIRED)


add_executable(main1 main1.cpp)
target_link_libraries(main1 PRIVATE grid_map_core::grid_map_core)


add_executable(main2 main2.cpp)
target_link_libraries(main2 PRIVATE Eigen3::Eigen)
11 changes: 11 additions & 0 deletions issue382/main1.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <Eigen/Core>

int main() {

Eigen::VectorXd v(10);
v[0] = 0.1;
v[1] = 0.2;
v(0) = 0.3;
v(1) = 0.4;
return 0;
}
12 changes: 12 additions & 0 deletions issue382/main2.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <Eigen/Core>


int main() {

Eigen::VectorXd v(10);
v[0] = 0.1;
v[1] = 0.2;
v(0) = 0.3;
v(1) = 0.4;
return 0;
}
24 changes: 24 additions & 0 deletions issue382/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>issue382</name>
<version>2.0.0</version>
<description>foo.</description>
<maintainer email="rf@foo.com">ryan f</maintainer>
<maintainer email="ynava@anybotics.com">Yoshua Nava</maintainer>
<maintainer email="ryanfriedman5410+grid_map@gmail.com">Ryan Friedman</maintainer>
<license>BSD</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>grid_map_core</depend>
<depend>eigen</depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit e65ad9c

Please sign in to comment.