summaryrefslogtreecommitdiff
path: root/simulation/protos/soccer_ball.proto
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/protos/soccer_ball.proto')
-rw-r--r--simulation/protos/soccer_ball.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/simulation/protos/soccer_ball.proto b/simulation/protos/soccer_ball.proto
new file mode 100644
index 0000000..629df1a
--- /dev/null
+++ b/simulation/protos/soccer_ball.proto
@@ -0,0 +1,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
+ }
+}