Skip to content

Commit f5d40d0

Browse files
authored
Merge pull request #7 from Simple-Robotics/topic/add-package-xml
Add package.xml
2 parents bb8969d + 7137caa commit f5d40d0

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ cmake_minimum_required(VERSION 3.18)
66

77
set(PROJECT_NAME nanoeigenpy)
88
set(PROJECT_URL https://github.com/Simple-Robotics/nanoeigenpy)
9-
set(PROJECT_DESCRIPTION "Tools for using Eigen with nanobind")
9+
set(
10+
PROJECT_DESCRIPTION
11+
"A support library for bindings between Eigen in C++ and Python, based on nanobind"
12+
)
1013
set(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
1114
set(PROJECT_USE_CMAKE_EXPORT True)
1215

@@ -236,4 +239,7 @@ install(
236239
ADD_HEADER_GROUP(${PROJECT_NAME}_HEADERS)
237240
ADD_SOURCE_GROUP(${PROJECT_NAME}_SOURCES)
238241

242+
# Install ROS package.xml
243+
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
244+
239245
SETUP_PROJECT_FINALIZE()

package.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
<package format="3">
3+
<name>nanoeigenpy</name>
4+
<version>0.0.0</version>
5+
<description>A support library for bindings between Eigen in C++ and Python, based on nanobind</description>
6+
<maintainer email="[email protected]">Wilson Jallet</maintainer>
7+
<maintainer email="[email protected]">Lucas Haubert</maintainer>
8+
<author>Wilson Jallet</author>
9+
<author>Lucas Haubert</author>
10+
<license>BSD</license>
11+
12+
<url type="website">https://github.com/Simple-Robotics/nanoeigenpy</url>
13+
14+
<build_depend>git</build_depend>
15+
<build_depend>doxygen</build_depend>
16+
17+
<!-- The following tag is recommended by REP-136 -->
18+
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
19+
20+
<depend condition="$ROS_PYTHON_VERSION == 3">python3</depend>
21+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-numpy</depend>
22+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-scipy</depend>
23+
<depend>eigen</depend>
24+
<depend>nanobind-dev</depend>
25+
26+
<buildtool_depend>cmake</buildtool_depend>
27+
<export>
28+
<build_type>cmake</build_type>
29+
</export>
30+
</package>

tests/test_iterative_solvers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@pytest.mark.parametrize("cls", _clazzes)
1919
def test_solver(cls):
20-
Q = np.random.randn(dim, dim)
20+
Q = rng.standard_normal((dim, dim))
2121
A = 0.5 * (Q.T + Q)
2222
solver = cls(A)
2323
solver.setMaxIterations(MAX_ITER)
@@ -41,7 +41,7 @@ def test_solver(cls):
4141

4242
@pytest.mark.parametrize("cls", _clazzes)
4343
def test_solver_with_guess(cls):
44-
Q = np.random.randn(dim, dim)
44+
Q = rng.standard_normal((dim, dim))
4545
A = 0.5 * (Q.T + Q)
4646
solver = cls(A)
4747
solver.setMaxIterations(MAX_ITER)

0 commit comments

Comments
 (0)