Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Toggle main menu visibility
Loading...
Searching...
No Matches
src
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
8
namespace
robot
{
9
18
double
setCmdVel
(
double
dtheta,
double
dx);
19
28
double
setTankCmdVel
(
double
left,
double
right);
29
36
void
setJointPower
(types::jointid_t joint,
double
power);
37
44
void
setJointPos
(types::jointid_t joint, int32_t targetPos);
45
51
types::DataPoint<int32_t>
getJointPos
(types::jointid_t joint);
52
53
void
setScienceServoPos(uint8_t servoNum, int32_t angle);
54
}
// namespace robot
robot::types::DataPoint
Represents data measured using a sensor at a given time.
Definition
data.h:182
robot
Collection of functions for manipulating a motor.
Definition
ArduPilotInterface.cpp:27
robot::getJointPos
types::DataPoint< int32_t > getJointPos(robot::types::jointid_t joint)
Definition
control_interface.cpp:98
robot::setTankCmdVel
double setTankCmdVel(double left, double right)
Request the robot to drive in tank style, where each side is controlled individually.
Definition
control_interface.cpp:56
robot::setJointPos
void setJointPos(robot::types::jointid_t joint, int32_t targetPos)
Set the position of the specified joint.
Definition
control_interface.cpp:88
robot::setCmdVel
double setCmdVel(double dtheta, double dx)
Request the robot to drive at the given velocities.
Definition
control_interface.cpp:36
robot::setJointPower
void setJointPower(robot::types::jointid_t joint, double power)
Set the power of the specified joint.
Definition
control_interface.cpp:76
Generated by
1.17.0