-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmovementgraph.cpp
More file actions
31 lines (22 loc) · 926 Bytes
/
movementgraph.cpp
File metadata and controls
31 lines (22 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include "movementgraph.h"
//#include "log.h"
using namespace AL;
MovementGraph::MovementGraph(boost::shared_ptr<ALBroker> broker, const std::string& name):
life_proxy(getParentBroker()),
ALModule(broker, name),
graph(getParentBroker()) {
setModuleDescription("Module for robot movements.");
functionName("Move", getName(), "move robot in other position");
addParam("x", "displacement to the right in meters. Negative value to the left.");
addParam("y", "displacement to front in meters. Negative value to back.");
addParam("theta", "Its a rotate angle from start position");
BIND_METHOD(MovementGraph::Move);
functionName("RightKick", getName(), "kick by right foot");
BIND_METHOD(MovementGraph::RightKick);
functionName("LeftKick", getName(), "kick by left foot");
BIND_METHOD(MovementGraph::LeftKick);
}
MovementGraph::~MovementGraph() {}
void MovementGraph::init() {
}