Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bfa38981
Commit
bfa38981
authored
Jun 07, 2005
by
Timothy Stack
Browse files
Argh, the obstacle size for the robot was too big.
parent
409607bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
robots/rmcd/obstacles.c
View file @
bfa38981
...
...
@@ -134,10 +134,10 @@ struct obstacle_node *ob_add_robot(struct robot_position *rp, int id)
* XXX We don't compute the actual bounding box, we just construct a square
* with the longest side of the robot.
*/
retval
->
on_natural
.
xmin
=
rp
->
x
-
ROBOT_OBSTACLE_SIZE
;
retval
->
on_natural
.
ymin
=
rp
->
y
-
ROBOT_OBSTACLE_SIZE
;
retval
->
on_natural
.
xmax
=
rp
->
x
+
ROBOT_OBSTACLE_SIZE
;
retval
->
on_natural
.
ymax
=
rp
->
y
+
ROBOT_OBSTACLE_SIZE
;
retval
->
on_natural
.
xmin
=
rp
->
x
-
ROBOT_OBSTACLE_SIZE
/
2
;
retval
->
on_natural
.
ymin
=
rp
->
y
-
ROBOT_OBSTACLE_SIZE
/
2
;
retval
->
on_natural
.
xmax
=
rp
->
x
+
ROBOT_OBSTACLE_SIZE
/
2
;
retval
->
on_natural
.
ymax
=
rp
->
y
+
ROBOT_OBSTACLE_SIZE
/
2
;
ob_expand_obstacle
(
&
retval
->
on_expanded
,
&
retval
->
on_natural
,
OBSTACLE_BUFFER
);
...
...
Write
Preview
Supports
Markdown
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