Barobo
PortalSign In
HomeShopTutorialsFree CurriculumHour of Code
RoboBlockly for Learning Math and Coding

Piano
Linkbot Image Mindstorm Image
0x126-6-12y126-6-12
Grid:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Labels: x-axis y-axis Show Grid
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants
Units: US Customary Metric
Background: Background Image

Robot 1

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (6 in, 6 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (-6 in, 6 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (-6 in, -6 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 4

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (6 in, -6 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in
Coordinate Soccer
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
#include <linkbot.h>
CPlot plot;
CLinkbotI robot;
double radius = 1.75;
double trackwidth = 3.69;

// This is a sample solution: soccer ball lands at (-7,-1)
plot.noStrokeColor();
plot.fillColor("#999999");
plot.circle(-7, -1, 0.5);
plot.strokeWidth(3);
plot.strokeColor("blue");
plot.text("(-7,-1)", PLOT_TEXT_LEFT, -9.5, 0);
robot.drivexyTo(-7, -1, radius, trackwidth);

plot.axisRange(PLOT_AXIS_XY, -12, 12);
plot.ticsRange(PLOT_AXIS_XY, 2);
plot.sizeRatio(1);
plot.plotting();
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
Problem Statement:

Linkbot 1, 2, 3, 4 are playing soccer. Linkbot 1 guards Quadrant I area, +y axis, and +x axis. Linkbot 2 guards Quadrant II and -x axis. Linkbot 3 guards Quadrant III and the -y axis. Linkbot 4 guards Quadrant IV. The soccer ball is being kicked to random spot on the field. Read the coordinate of the soccer ball and drive the correct linkbot to the correct location using driveToXY command block.


		
Rubbish bin
Time