Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulabstable
Commits
70955793
Commit
70955793
authored
Dec 14, 2004
by
Daniel Flickinger
Browse files
Filled in position transformation functions for RMCD
parent
ed054099
Changes
1
Show whitespace changes
Inline
Sidebyside
robots/rmcd/rmcd.c
View file @
70955793
/* Robot Master Control Daemon
*
* Dan Flickinger
*
*
***
*
* RMCD will immediately try to connect to EMCD, get configuration data,
* and then open connections to all robots as sent by EMCD. RMCD only heeds
...
...
@@ 21,7 +21,7 @@
*
*
* 2004/12/01
* 2004/12/
07
* 2004/12/
14
*/
#include <stdio.h>
...
...
@@ 197,7 +197,12 @@ static void conv_a2r(struct position *rel,
assert
(
abs_start
!=
NULL
);
assert
(
abs_finish
!=
NULL
);
*
rel
=
*
abs_finish
;
// XXX DAN, fill this out.
rel
>
x
=
abs_finish
>
x

abs_start
>
x
;
rel
>
y
=
abs_finish
>
y

abs_start
>
y
;
rel
>
theta
=
abs_finish
>
theta

abs_start
>
theta
;
rel
>
timestamp
=
abs_finish
>
timestamp
;
//*rel = *abs_finish; // XXX DAN, fill this out.
}
/**
...
...
@@ 216,7 +221,12 @@ static void conv_r2a(struct position *abs_finish,
assert
(
abs_start
!=
NULL
);
assert
(
abs_finish
!=
NULL
);
*
abs_finish
=
*
rel
;
// XXX DAN, fill this out.
abs_finish
>
x
=
abs_start
>
x
+
rel
>
x
;
abs_finish
>
y
=
abs_start
>
y
+
rel
>
y
;
abs_finish
>
theta
=
abs_start
>
theta
+
rel
>
theta
;
abs_finish
>
timestamp
=
rel
>
timestamp
;
//*abs_finish = *rel; // XXX DAN, fill this out.
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment