Skip to content

Commit

Permalink
Revert "Merge branch 'main' into feat/navigation-message-mappers"
Browse files Browse the repository at this point in the history
This reverts commit 3faed91, reversing
changes made to 7f5587f.
  • Loading branch information
maa134340 committed Nov 7, 2024
1 parent 3faed91 commit a003f89
Show file tree
Hide file tree
Showing 81 changed files with 491 additions and 1,928 deletions.
16 changes: 0 additions & 16 deletions .vscode/c_cpp_properties.json

This file was deleted.

8 changes: 0 additions & 8 deletions behavior-ms/behavior-bruxo/behavior/parameters/parameters.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef BEHAVIOR_PARAMETERS_PARAMETERS_H
#define BEHAVIOR_PARAMETERS_PARAMETERS_H

#include "behavior/processing/messages/common/robot_id/robot_id.h"

#include <robocin/parameters/parameters.h>

namespace behavior {
Expand All @@ -11,12 +9,6 @@ namespace behavior {
constinit const auto pBehaviorPollerTimeoutMs
= ::robocin::parameters::View<1>::asInt32(10 /*ms ~= 100Hz*/);

constinit const auto pAllyColor = Color::COLOR_BLUE;

constinit const auto isAttackingToRight = ::robocin::parameters::View<1>::asBool(true);

constinit const auto pBallIsMovingVelocity = ::robocin::parameters::View<1>::asInt32(300);
constinit const auto pBallIsMovingFastVelocity = ::robocin::parameters::View<1>::asInt32(850);
// NOLINTEND(*comment*)
} // namespace behavior

Expand Down
3 changes: 0 additions & 3 deletions behavior-ms/behavior-bruxo/behavior/processing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ robocin_cpp_library(
SRCS behavior_processor.cpp
DEPS common::output
messages
entities
state_machine
behavior_manager
analyzers
)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,12 @@ std::optional<rc::Behavior> BehaviorProcessor::process(std::span<const Payload>
const rc::Detection last_detection = detection_messages.back();

BehaviorMessage behavior_message;
// TODO: implement the logic to generate the behavior based on the last detection and the last
// decision
///////////////////////////////////////////////////////////////////////////////////

for (const auto& robot : last_detection.robots()) {

world_.update(last_decision_.value(),
{last_detection.robots().begin(), last_detection.robots().end()},
{last_detection.balls().begin(), last_detection.balls().end()},
last_detection.field(),
last_game_status_.value());

for (const auto& robot : world_.allies) {
behavior_message.output.emplace_back(
OutputMessage{RobotIdMessage{}, MotionMessage{}, PlanningMessage{}});
}
Expand Down
Loading

0 comments on commit a003f89

Please sign in to comment.