Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
control_interface.h
1#pragma once
2
3#include "world_interface/data.h"
4
5// This is a layer that provides further abstraction on top of
6// the motor-level control provided by the world interface
7
8namespace robot {
9
18double setCmdVel(double dtheta, double dx);
19
28double setTankCmdVel(double left, double right);
29
36void setJointPower(types::jointid_t joint, double power);
37
44void setJointPos(types::jointid_t joint, int32_t targetPos);
45
51types::DataPoint<int32_t> getJointPos(types::jointid_t joint);
52
53} // namespace robot
Represents data measured using a sensor at a given time.
Definition data.h:136
Collection of functions for manipulating a motor.
Definition ArduPilotInterface.cpp:27
types::DataPoint< int32_t > getJointPos(robot::types::jointid_t joint)
Definition control_interface.cpp:134
double setTankCmdVel(double left, double right)
Request the robot to drive in tank style, where each side is controlled individually.
Definition control_interface.cpp:77
void setJointPos(robot::types::jointid_t joint, int32_t targetPos)
Set the position of the specified joint.
Definition control_interface.cpp:124
double setCmdVel(double dtheta, double dx)
Request the robot to drive at the given velocities.
Definition control_interface.cpp:38
void setJointPower(robot::types::jointid_t joint, double power)
Set the power of the specified joint.
Definition control_interface.cpp:112