Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Mar 18, 2024
1 parent 67e762d commit 57295f9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions tesseract_common/include/tesseract_common/fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class PluginLoader;
class Resource;
class ResourceLocator;

// serialization.h
struct Serialization;

// timer.h
class Timer;
} // namespace tesseract_common
Expand Down
10 changes: 7 additions & 3 deletions tesseract_common/include/tesseract_common/type_erasure.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
#include <typeindex>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
#include <boost/serialization/assume_abstract.hpp>
#include <boost/serialization/unique_ptr.hpp>
#include <tesseract_common/serialization.h>

namespace tesseract_common
{
struct Serialization;

/** @brief This is the interface that all type erasures interfaces must inherit from */
struct TypeErasureInterface
{
Expand All @@ -59,7 +61,9 @@ struct TypeErasureInterface
friend class boost::serialization::access;
friend struct tesseract_common::Serialization;
template <class Archive>
void serialize(Archive& /*ar*/, const unsigned int /*version*/){}; // NOLINT
void serialize(Archive& /*ar*/, const unsigned int /*version*/)
{
} // NOLINT
};

template <typename ConcreteType, typename ConceptInterface>
Expand Down Expand Up @@ -150,7 +154,7 @@ struct TypeErasureBase
{
}

TypeErasureBase() : value_(nullptr){}; // NOLINT
TypeErasureBase() : value_(nullptr) {} // NOLINT

// Destructor
~TypeErasureBase() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ class TrajectoryInterpolator;
class TrajectoryPlayer
{
public:
TrajectoryPlayer() = default;
TrajectoryPlayer();
~TrajectoryPlayer();
TrajectoryPlayer(const TrajectoryPlayer&) = delete;
TrajectoryPlayer& operator=(const TrajectoryPlayer&) = delete;
TrajectoryPlayer(TrajectoryPlayer&&) = default;
TrajectoryPlayer& operator=(TrajectoryPlayer&&) = default;

/**
* @brief Set the the trajectory for the trajectory player
Expand Down
2 changes: 1 addition & 1 deletion tesseract_visualization/src/trajectory_interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ tesseract_common::JointState TrajectoryInterpolator::interpolate(const tesseract
return out;
}

bool TrajectoryInterpolator::empty() const { return trajectory_.empty(); };
bool TrajectoryInterpolator::empty() const { return trajectory_.empty(); }

} // namespace tesseract_visualization
3 changes: 3 additions & 0 deletions tesseract_visualization/src/trajectory_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ TESSERACT_COMMON_IGNORE_WARNINGS_POP

namespace tesseract_visualization
{
TrajectoryPlayer::TrajectoryPlayer() = default;
TrajectoryPlayer::~TrajectoryPlayer() = default;

void TrajectoryPlayer::setTrajectory(const tesseract_common::JointTrajectory& trajectory)
{
// Prepare the new trajectory message
Expand Down

0 comments on commit 57295f9

Please sign in to comment.