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

Rework beluga_benchmark using LAMBKIN #415

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 12 additions & 25 deletions beluga_benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Ekumen, Inc.
# Copyright 2024 Ekumen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,30 +15,17 @@
cmake_minimum_required(VERSION 3.16)
project(beluga_benchmark)

set(ROS_VERSION $ENV{ROS_VERSION})
if(NOT ROS_VERSION)
if(CATKIN_DEVEL_PREFIX OR CATKIN_BUILD_BINARY_PACKAGE)
set(ROS_VERSION 1)
else()
find_package(ament_cmake QUIET)
if(ament_cmake_FOUND)
set(ROS_VERSION 2)
endif()
endif()
endif()
if(ROS_VERSION EQUAL 2)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
find_package(beluga_amcl REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)

ament_python_install_package(${PROJECT_NAME})
install(PROGRAMS scripts/nominal.robot scripts/swept.robot
scripts/ndt_swept.robot DESTINATION lib/${PROJECT_NAME})

install(DIRECTORY scripts/profiling scripts/benchmarking
USE_SOURCE_PERMISSIONS DESTINATION lib/${PROJECT_NAME})
install(
DIRECTORY config
params
launch
reports
DESTINATION share/${PROJECT_NAME})

ament_package()
elseif(ROS_VERSION EQUAL 1)
install(CODE "message(STATUS 'Nothing to be done')")
else()
message(FATAL_ERROR "Unknown ROS distribution version: ${ROS_VERSION}")
endif()
ament_package()
3 changes: 1 addition & 2 deletions beluga_benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Beluga Benchmark

This package contains scripts to benchmark, profile and also compare Beluga AMCL with other implementations.
This package contains scripts to benchmark, profile, and also compare Beluga AMCL with other implementations.

## Getting Started

- View [reports](docs/reports/) comparing Beluga's performance to other AMCL implementations.
- [How to benchmark Beluga?](docs/BENCHMARKING.md)
- [How to profile Beluga?](docs/PROFILING.md)
23 changes: 0 additions & 23 deletions beluga_benchmark/beluga_benchmark/__init__.py

This file was deleted.

290 changes: 0 additions & 290 deletions beluga_benchmark/beluga_benchmark/compare_results.py

This file was deleted.

17 changes: 0 additions & 17 deletions beluga_benchmark/beluga_benchmark/exceptions.py

This file was deleted.

Loading