summaryrefslogtreecommitdiff
path: root/i/marvin/src/motor/motor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/motor/motor.cc')
-rw-r--r--i/marvin/src/motor/motor.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/i/marvin/src/motor/motor.cc b/i/marvin/src/motor/motor.cc
index d2a7250..d3fadfc 100644
--- a/i/marvin/src/motor/motor.cc
+++ b/i/marvin/src/motor/motor.cc
@@ -102,11 +102,20 @@ Motor::stop (void)
/// get the file descriptor
int
-Motor::getFd(void)
+Motor::getFd(void) const
{
return asserv_.getFd();
}
+/// get the position of robal
+void
+Motor::getPosition(double & x, double & y, double & a) const
+{
+ x = x_;
+ y = y_;
+ a = a_;
+}
+
/// Next seq number.
void
Motor::nextSeq (void)