Revert "Update RVO2 to git 2022.09"

This reverts commit c920881105.

Fixes #78826.
This commit is contained in:
Rémi Verschelde
2023-06-29 12:50:49 +02:00
parent c83f912bcb
commit d0c1dd16ee
33 changed files with 4093 additions and 4877 deletions

View File

@ -2,14 +2,13 @@
* Obstacle2d.h
* RVO2 Library
*
* SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
* SPDX-License-Identifier: Apache-2.0
* Copyright 2008 University of North Carolina at Chapel Hill
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -28,59 +27,46 @@
* Chapel Hill, N.C. 27599-3175
* United States of America
*
* <https://gamma.cs.unc.edu/RVO2/>
* <http://gamma.cs.unc.edu/RVO2/>
*/
#ifndef RVO2D_OBSTACLE_H_
#define RVO2D_OBSTACLE_H_
/**
* @file Obstacle2d.h
* @brief Declares the Obstacle2D class.
* \file Obstacle2d.h
* \brief Contains the Obstacle class.
*/
#include <cstddef>
#include <cstdint>
#include "Vector2.h"
#include "Definitions.h"
namespace RVO2D {
/**
* @brief Defines static obstacles in the simulation.
*/
class Obstacle2D {
public:
/**
* @brief Constructs a static obstacle instance.
*/
Obstacle2D();
/**
* \brief Defines static obstacles in the simulation.
*/
class Obstacle2D {
public:
/**
* \brief Constructs a static obstacle instance.
*/
Obstacle2D();
/**
* @brief Destroys this static obstacle instance.
*/
~Obstacle2D();
bool isConvex_;
Obstacle2D *nextObstacle_;
Vector2 point_;
Obstacle2D *prevObstacle_;
Vector2 unitDir_;
/* Not implemented. */
Obstacle2D(const Obstacle2D &other);
float height_ = 1.0;
float elevation_ = 0.0;
uint32_t avoidance_layers_ = 1;
/* Not implemented. */
Obstacle2D &operator=(const Obstacle2D &other);
size_t id_;
Vector2 direction_;
Vector2 point_;
Obstacle2D *next_;
Obstacle2D *previous_;
std::size_t id_;
bool isConvex_;
float height_ = 1.0;
float elevation_ = 0.0;
uint32_t avoidance_layers_ = 1;
friend class Agent2D;
friend class KdTree2D;
friend class RVOSimulator2D;
};
} /* namespace RVO2D */
friend class Agent2D;
friend class KdTree2D;
friend class RVOSimulator2D;
};
}
#endif /* RVO2D_OBSTACLE_H_ */