Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@

#include "rclcpp/rclcpp.hpp"

#ifdef ERROR
#undef ERROR //DiagnosticStatus::ERROR conflicts with Windows.h ERROR definition
#endif

namespace diagnostic_aggregator
{
/*!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@

#include "rclcpp/rclcpp.hpp"

#ifdef ERROR
#undef ERROR
#endif

namespace diagnostic_aggregator
{
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@

#include "rclcpp/rclcpp.hpp"

#ifdef ERROR
#undef ERROR
#endif

namespace diagnostic_aggregator
{
/*!
Expand Down
4 changes: 4 additions & 0 deletions diagnostic_aggregator/src/aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
#include <string>
#include <vector>

#ifdef ERROR
#undef ERROR
#endif

namespace diagnostic_aggregator
{
using std::placeholders::_1;
Expand Down
4 changes: 4 additions & 0 deletions diagnostic_aggregator/src/analyzer_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
#include <vector>
#include <regex>

#ifdef ERROR
#undef ERROR
#endif

PLUGINLIB_EXPORT_CLASS(diagnostic_aggregator::AnalyzerGroup, diagnostic_aggregator::Analyzer)

namespace diagnostic_aggregator
Expand Down
4 changes: 4 additions & 0 deletions diagnostic_updater/src/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

#include "rclcpp/rclcpp.hpp"

#ifdef ERROR
#undef ERROR
#endif

using namespace std::chrono_literals;

double time_to_launch;
Expand Down
4 changes: 4 additions & 0 deletions diagnostic_updater/test/diagnostic_status_wrapper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#include "diagnostic_updater/diagnostic_status_wrapper.hpp"
#include "diagnostic_msgs/msg/diagnostic_status.hpp"

#ifdef ERROR
#undef ERROR
#endif

TEST(DiagnosticStatusWrapper, testDiagnosticStatusWrapperDefaultConstructor) {
// A default constructed DiagnosticStatusWrapper should be empty.
diagnostic_updater::DiagnosticStatusWrapper dsw;
Expand Down
4 changes: 4 additions & 0 deletions diagnostic_updater/test/diagnostic_updater_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@

#include "rclcpp_lifecycle/lifecycle_node.hpp"

#ifdef ERROR
#undef ERROR
#endif

using namespace std::chrono_literals;

class TestClass
Expand Down
4 changes: 4 additions & 0 deletions self_test/example/selftest_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

#include "self_test/test_runner.hpp"

#ifdef ERROR
#undef ERROR
#endif

class MyNode : public rclcpp::Node
{
private:
Expand Down
4 changes: 4 additions & 0 deletions self_test/test/selftest_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

#include "self_test/test_runner.hpp"

#ifdef ERROR
#undef ERROR
#endif

/*
*\author Kevin Watts
*\brief Returns nominal self-test values
Expand Down
Loading