First flake environment

This commit is contained in:
2025-11-06 15:59:22 +01:00
parent 8648a96bce
commit d8b55f08de
33 changed files with 371 additions and 26 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <glm/glm.hpp>
#include <jsoncpp/json/json.h>
#include <json/json.h>
namespace mg {
class PermanentObstacle {

View File

@ -1,7 +1,7 @@
#pragma once
#include <glm/glm.hpp>
#include <jsoncpp/json/json.h>
#include <json/json.h>
namespace mg {
class StaticObstacle {

18
mg_obstacles/package.nix Normal file
View File

@ -0,0 +1,18 @@
# Automatically generated by: ros2nix --distro jazzy
{ lib, buildRosPackage, ament-cmake, geometry-msgs, glm, jsoncpp, mg-msgs, rclcpp, rclcpp-action, rclcpp-components, tf2, tf2-geometry-msgs, tf2-ros }:
buildRosPackage rec {
pname = "ros-jazzy-mg-obstacles";
version = "0.0.0";
src = ./.;
buildType = "ament_cmake";
buildInputs = [ ament-cmake glm ];
propagatedBuildInputs = [ geometry-msgs jsoncpp mg-msgs rclcpp rclcpp-action rclcpp-components tf2 tf2-geometry-msgs tf2-ros ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = "Library for collision detection";
license = with lib.licenses; [ asl20 ];
};
}

View File

@ -5,6 +5,7 @@
#include "geometry_msgs/msg/point_stamped.hpp"
#include "rclcpp/rclcpp.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include "glm/glm.hpp"
#include "glm/gtx/matrix_transform_2d.hpp"

View File

@ -1,4 +1,5 @@
#include "mg_obstacles/sdf.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/norm.hpp>
namespace mg {