summaryrefslogtreecommitdiff
path: root/simulation/protos/soccer_ball.proto
blob: 629df1acd74d0b8f9953e09f64cb615e5df0b3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#VRML_SIM R2024a utf8
# Describe the functionality of your PROTO here.

EXTERNPROTO "/home/abel/Documents/robotica/simulation/protos/Ball.proto"

PROTO soccer_ball [
  field SFVec3f translation 0 0 0.1625
  field SFRotation rotation 0 0 1 0
  field SFString name "soccer_ball"
  field SFString controller ""
]
{
  Ball {
    translation IS translation
    rotation IS rotation
    name IS name
    children [
      Emitter {
        channel 1  # Assign an appropriate channel number
        range -1   # Setting range to -1 makes it unlimited
        aperture 6.28319  # 2 * PI radians for omnidirectional
        beamWidth 6.28319 # 2 * PI radians for omnidirectional
        dataSize 1  # Size of the data packet
        dataRate 1  # Rate of data emission in bits per second
      }
    ]
    controller IS controller
  }
}