Skip to content

Commit

Permalink
Created track for heading calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Oct 25, 2023
1 parent 30c5cf8 commit f429e2c
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
39 changes: 39 additions & 0 deletions webots/protos/HeadingCalculationTrack.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#VRML_SIM R2023a utf8

EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/floors/protos/RectangleArena.proto"

PROTO HeadingCalculationTrack [

]
{
RectangleArena {
floorSize 2 2
floorTileSize 2 2
floorAppearance PBRAppearance {
baseColorMap ImageTexture {
url [
"./compass.jpg"
]
}
roughness 1
roughnessMap ImageTexture {
url [
"https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/parquetry/chequered_parquetry_roughness.jpg"
]
}
metalness 0
normalMap ImageTexture {
url [
"https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/parquetry/chequered_parquetry_normal.jpg"
]
}
occlusionMap ImageTexture {
url [
"https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/parquetry/chequered_parquetry_occlusion.jpg"
]
}
}
wallThickness 0.001
wallHeight 0.05
}
}
Binary file added webots/protos/compass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions webots/worlds/HeadingCalculation.wbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#VRML_SIM R2023b utf8

EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/backgrounds/protos/TexturedBackground.proto"
EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
EXTERNPROTO "../protos/Zumo32U4.proto"
EXTERNPROTO "../protos/HeadingCalculationTrack.proto"

WorldInfo {
info [
"Test track for heading calculation."
]
title "Heading Calculation Track"
basicTimeStep 8
contactProperties [
ContactProperties {
material1 "track material"
coulombFriction [
500
]
softCFM 0.0001
}
]
}
Viewpoint {
orientation -0.5773502691896258 0.5773502691896258 0.5773502691896258 2.0944
position 0.10671498723053877 -0.025801636297686177 4.366758398391875
}
TexturedBackground {
}
TexturedBackgroundLight {
}
HeadingCalculationTrack {
}
Zumo32U4 {
translation 0 0 0.0139993
rotation 6.60216e-09 2.69589e-07 -1 -1.5286253071795866
name "zumo_0"
}

0 comments on commit f429e2c

Please sign in to comment.