Activity: Webot-Robot Simulation Robot Operating System (Ros) (5 Hour)
Activity: Webot-Robot Simulation Robot Operating System (Ros) (5 Hour)
>
New Project
Directory...menu item
and follow the
instructions:
>> Name the project
directory
>> Name the world file
>> Click all the tick
boxes, including the "Add
a rectangle arena"
# changing the size
>> Double-click R
ectangleArenanode
>> Select the
floorTileSizefield
>> set its value.
> Click A
ddbutton at the top of
the scene tree
> In the open dialog box, choose
PROTO nodes (Webots Projects) /
objects / factory / containers /
WoodenBox (Solid)
.
The figure depicts a rigid body and its sub-nodes. The graphical
representation of the Solid node is defined by the Shape nodes
populating its
childrenlist.
Creating a Ball
#
For creating a ball, we will follow the graphical representation step
by step.
> press the
Addbutton.
> open the B
ases nodessection.
> select the
Solid
node.
> expand the
Solidnode.
>> select its
childrenfield.
> Add a S
hapenode > using the A
dd
button.
> Select the
appearance field of the Shape node and use the
Add
button to add a P
BRAppearancenode.
>> Add a S
pherenode as the
geometryfield.
>> Add a P
hysic
snode to the p
hysicsfield.
>> S
avethe simulation (mandatory).