Skip to content

Commit

Permalink
Update RTTI macros for upcoming MRPT 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Sep 11, 2024
1 parent 21db8a8 commit 4620fb2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mrpt_path_planning/include/mpp/algos/CostEvaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
#include <mpp/data/MoveEdgeSE2_TPS.h>
#include <mrpt/opengl/CSetOfObjects.h>
#include <mrpt/rtti/CObject.h>

#include <functional>
#include <mrpt/version.h>

namespace mpp
{
class CostEvaluator : public mrpt::rtti::CObject
{
#if MRPT_VERSION < 0x020e00
DEFINE_VIRTUAL_MRPT_OBJECT(CostEvaluator)
#else
DEFINE_VIRTUAL_MRPT_OBJECT(CostEvaluator, mpp)
#endif

public:
CostEvaluator() = default;
Expand Down
5 changes: 5 additions & 0 deletions mrpt_path_planning/include/mpp/algos/Planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <mrpt/rtti/CObject.h>
#include <mrpt/system/COutputLogger.h>
#include <mrpt/system/CTimeLogger.h>
#include <mrpt/version.h>

#include <optional>
#include <vector>
Expand All @@ -22,7 +23,11 @@ namespace mpp
class Planner : public mrpt::rtti::CObject,
virtual public mrpt::system::COutputLogger
{
#if MRPT_VERSION < 0x020e00
DEFINE_VIRTUAL_MRPT_OBJECT(Planner)
#else
DEFINE_VIRTUAL_MRPT_OBJECT(Planner, mpp)
#endif

public:
Planner() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <mrpt/kinematics/CVehicleVelCmd.h>
#include <mrpt/rtti/CObject.h>
#include <mrpt/system/COutputLogger.h>
#include <mrpt/version.h>

namespace mpp
{
Expand Down Expand Up @@ -60,7 +61,11 @@ struct TargetApproachOutput
class TargetApproachController : public mrpt::system::COutputLogger,
public mrpt::rtti::CObject
{
#if MRPT_VERSION < 0x020e00
DEFINE_VIRTUAL_MRPT_OBJECT(TargetApproachController)
#else
DEFINE_VIRTUAL_MRPT_OBJECT(TargetApproachController, mpp)
#endif

public:
TargetApproachController()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <mrpt/kinematics/CVehicleVelCmd.h>
#include <mrpt/rtti/CObject.h>
#include <mrpt/system/COutputLogger.h>
#include <mrpt/version.h>

namespace mpp
{
Expand Down Expand Up @@ -52,7 +53,11 @@ enum class STOP_TYPE : uint8_t
class VehicleMotionInterface : public mrpt::system::COutputLogger,
public mrpt::rtti::CObject
{
#if MRPT_VERSION < 0x020e00
DEFINE_VIRTUAL_MRPT_OBJECT(VehicleMotionInterface)
#else
DEFINE_VIRTUAL_MRPT_OBJECT(VehicleMotionInterface, mpp)
#endif

public:
VehicleMotionInterface()
Expand Down

0 comments on commit 4620fb2

Please sign in to comment.