Skip to content

Commit

Permalink
Merge pull request #11 from RoboCup-Humanoid-TC/NUbots/main
Browse files Browse the repository at this point in the history
NUbots robot model
  • Loading branch information
jgueldenstein authored Mar 9, 2023
2 parents 35d93b1 + dc6d971 commit 83ed080
Show file tree
Hide file tree
Showing 63 changed files with 2,715 additions and 0 deletions.
89 changes: 89 additions & 0 deletions controllers/referee/teams/nubots.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"name": "NUbots",
"players": {
"1": {
"proto": "NUgus",
"dockerTag": "robocup",
"dockerCmd": "webotsrobocup",
"halfTimeStartingPose": {
"translation": [-3.5, -3.31, 0.51],
"rotation": [0, 0, 1, 1.57]
},
"reentryStartingPose": {
"translation": [-3.5, -3.31, 0.51],
"rotation": [0, 0, 1, 1.57]
},
"shootoutStartingPose": {
"translation": [2.7625, 0, 0.525],
"rotation": [0, 0, 1, 0]
},
"goalKeeperStartingPose": {
"translation": [-4.47, 0, 0.51],
"rotation": [0, 0, 1, 0]
}
},
"2": {
"proto": "NUgus",
"dockerTag": "robocup",
"dockerCmd": "webotsrobocup",
"halfTimeStartingPose": {
"translation": [-3.5, 3.31, 0.51],
"rotation": [0, 0, 1, -1.57]
},
"reentryStartingPose": {
"translation": [-3.5, 3.31, 0.51],
"rotation": [0, 0, 1, -1.57]
},
"shootoutStartingPose": {
"translation": [2.7625, 0, 0.525],
"rotation": [0, 0, 1, 0]
},
"goalKeeperStartingPose": {
"translation": [-4.47, 0, 0.51],
"rotation": [0, 0, 1, 0]
}
},
"3": {
"proto": "NUgus",
"dockerTag": "robocup",
"dockerCmd": "webotsrobocup",
"halfTimeStartingPose": {
"translation": [-0.75, -3.31, 0.51],
"rotation": [0, 0, 1, 1.57]
},
"reentryStartingPose": {
"translation": [-0.75, -3.31, 0.51],
"rotation": [0, 0, 1, 1.57]
},
"shootoutStartingPose": {
"translation": [2.7625, 0, 0.525],
"rotation": [0, 0, 1, 0]
},
"goalKeeperStartingPose": {
"translation": [-4.47, 0, 0.51],
"rotation": [0, 0, 1, 0]
}
},
"4": {
"proto": "NUgus",
"dockerTag": "robocup",
"dockerCmd": "webotsrobocup",
"halfTimeStartingPose": {
"translation": [-0.75, 3.31, 0.51],
"rotation": [0, 0, 1, -1.57]
},
"reentryStartingPose": {
"translation": [-0.75, 3.31, 0.51],
"rotation": [0, 0, 1, -1.57]
},
"shootoutStartingPose": {
"translation": [2.7625, 0, 0.525],
"rotation": [0, 0, 1, 0]
},
"goalKeeperStartingPose": {
"translation": [-4.47, 0, 0.51],
"rotation": [0, 0, 1, 0]
}
}
}
}
21 changes: 21 additions & 0 deletions protos/robots/nubots/NUgus/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 NUbots

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
74 changes: 74 additions & 0 deletions protos/robots/nubots/NUgus/NUgus.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#VRML_SIM R2022b utf8
# license: Apache License 2.0
# license url: http://www.apache.org/licenses/LICENSE-2.0
# This is a proto file for Webots for the NUgus
# Extracted from: NUgus.urdf

EXTERNPROTO "NUgus_mesh/NUgusMain.proto"

PROTO NUgus [
field SFVec3f translation 0 0 0
field SFRotation rotation 0 1 0 0
field SFString name "red player 1" # Is `Robot.name`.
field SFString controller "player" # Find in "webots/projects/samples/contests/robocup/controllers/player"
field MFString controllerArgs [] # Is `Robot.controllerArgs`.
field SFString customData "" # Is `Robot.customData`.
field SFBool supervisor FALSE # Is `Robot.supervisor`.
field SFBool synchronization TRUE # Is `Robot.synchronization`.
field SFBool selfCollision TRUE # Is `Robot.selfCollision`.
field MFString robotTexture "../NUgus_textures/NUgus_base_color.jpg"
# MOTOR PARAMETER: See section 2. of docs/Robot_Model_RoboCup_2021 for more information
field SFFloat MX64-torque 7.30
field SFFloat MX64-vel 8.17
field SFFloat MX64-damping 0.65
field SFFloat MX64-friction 1.73
field SFFloat MX106-torque 10.00
field SFFloat MX106-vel 5.76
field SFFloat MX106-damping 1.23
field SFFloat MX106-friction 2.55
field SFFloat backlash 0.01
field SFFloat gearMass 0.001
field SFFloat DYNAMIXEL-RESOLUTION 0.0015
# CAMERA PARAMETERS: See docs for more information
field SFFloat fieldOfView 1.5707 # Approximates PI/2 radians (90 degrees)
field SFInt32 cameraWidth 640 # 640 pixels
field SFInt32 cameraHeight 480 # 480 pixels
field SFFloat cameraLensFocalLength 1.98 # 1.98mm, as from our real cameras (https://www.lensation.de/pdf/BF10M19828S118C.pdf)
field SFFloat cameraNoise 0.000000001 # Not much noise on real cameras
field SFFloat cameraMotionBlur 10 # With over 100fps, real cameras do not have much motion blur
field MFColor recognitionColors [0 0 1]
field SFBool useRecognition FALSE
]
{
NUgusMain {
translation IS translation
rotation IS rotation
name IS name
controller IS controller
controllerArgs IS controllerArgs
customData IS customData
supervisor IS supervisor
synchronization IS synchronization
selfCollision IS selfCollision
robotTexture IS robotTexture
MX64-torque IS MX64-torque
MX64-vel IS MX64-vel
MX64-damping IS MX64-damping
MX64-friction IS MX64-friction
MX106-torque IS MX106-torque
MX106-vel IS MX106-vel
MX106-damping IS MX106-damping
MX106-friction IS MX106-friction
backlash IS backlash
gearMass IS gearMass
DYNAMIXEL-RESOLUTION IS DYNAMIXEL-RESOLUTION
fieldOfView IS fieldOfView
cameraWidth IS cameraWidth
cameraHeight IS cameraHeight
cameraLensFocalLength IS cameraLensFocalLength
cameraNoise IS cameraNoise
cameraMotionBlur IS cameraMotionBlur
recognitionColors IS recognitionColors
useRecognition IS useRecognition
}
}
31 changes: 31 additions & 0 deletions protos/robots/nubots/NUgus/NUgus_mesh/JerseyBack.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#VRML_SIM R2022b utf8
# license: Apache License 2.0
# license url: http://www.apache.org/licenses/LICENSE-2.0
# tags: hidden
PROTO JerseyBack [
field MFString jerseyBackTexture "textures/NUgus_back_red_1.jpg"
field SFColor jerseyBackColor 0.5 0.5 0.5
]
{
Shape {
appearance PBRAppearance {
baseColor IS jerseyBackColor
baseColorMap ImageTexture {
url IS jerseyBackTexture
}
metalness 0
roughness 1
}
geometry IndexedFaceSet {
coord DEF JERSEY_BACK_COORD Coordinate {
point [
0.052648 0.006368 0.244846, 0.065766 0.021924 0.237744, 0.050098 0.020231 0.242126, 0.057020 0.030972 0.235918, -0.052648 0.006368 0.244846, -0.074646 -0.000331 0.239925, -0.052916 -0.003324 0.244827, 0.046839 0.034156 0.235955, -0.057020 0.030972 0.235918, -0.050098 0.020231 0.242126, -0.046839 0.034156 0.235955, 0.033355 0.070088 0.159562, 0.015958 0.071194 0.161444, 0.049373 0.067883 0.167419, 0.015765 0.065630 0.197742, 0.036589 0.063848 0.198005, 0.049798 0.061871 0.197339, -0.015958 0.071194 0.161444, -0.015765 0.065630 0.197742, -0.000000 0.071526 0.160813, 0.079185 0.053925 0.180409, 0.062316 0.063303 0.171834, 0.067071 0.056816 0.189072, 0.071327 0.049466 0.205745, 0.079051 0.043590 0.210795, -0.067071 0.056816 0.189072, -0.062316 0.063303 0.171834, -0.079185 0.053925 0.180409, -0.079051 0.043590 0.210795, -0.071327 0.049466 0.205745, 0.052916 -0.003324 0.244827, 0.074646 -0.000331 0.239925, -0.065766 0.021924 0.237744, 0.073760 0.011344 0.238676, 0.067318 0.035363 0.230171, 0.058531 0.040968 0.228403, 0.049057 0.050436 0.220193, 0.041971 0.043462 0.230010, 0.038333 0.057640 0.213332, 0.013791 0.061993 0.208749, 0.012180 0.057957 0.216105, 0.031953 0.049125 0.226654, -0.013791 0.061993 0.208749, -0.012180 0.057957 0.216105, -0.000000 0.061242 0.210999, -0.000000 0.065379 0.200555, -0.058531 0.040968 0.228403, -0.041971 0.043462 0.230010, -0.049057 0.050436 0.220193, -0.067318 0.035363 0.230171, -0.073760 0.011344 0.238676, 0.083647 -0.003389 0.231879, 0.084463 -0.001102 0.228705, 0.084398 0.013734 0.226815, 0.081249 0.013549 0.233197, 0.081023 0.001995 0.235827, -0.081023 0.001995 0.235827, -0.081249 0.013549 0.233197, 0.084658 0.032322 0.214400, 0.083017 0.025575 0.224598, 0.081341 0.036262 0.218849, -0.081341 0.036262 0.218849, -0.083017 0.025575 0.224598, -0.077592 0.024745 0.231151, -0.075699 0.039508 0.221445, 0.085518 0.042563 0.187191, 0.086131 0.041615 0.176285, 0.081967 0.051111 0.181033, 0.083803 0.040225 0.206375, 0.085049 0.039463 0.201483, -0.081967 0.051111 0.181033, -0.085518 0.042563 0.187191, -0.083803 0.040225 0.206375, 0.085042 0.042758 0.159520, 0.088351 0.025992 0.149637, 0.080806 0.043062 0.139754, 0.086763 0.038561 0.169305, -0.080806 0.043062 0.139754, -0.085042 0.042758 0.159520, -0.080435 0.051716 0.154289, -0.077939 0.056608 0.166196, -0.073083 0.058708 0.145366, -0.071947 0.054862 0.124125, 0.089564 0.012337 0.146143, 0.084014 0.016770 0.125505, -0.084014 0.016770 0.125505, -0.088351 0.025992 0.149637, -0.080171 0.034204 0.126995, 0.089771 -0.000279 0.144676, 0.083843 0.004175 0.117473, 0.082242 0.051766 0.171222, 0.077939 0.056608 0.166196, 0.058953 0.065786 0.154720, 0.048705 0.068488 0.141926, 0.022928 0.069325 0.139111, -0.000000 0.069433 0.138596, -0.022928 0.069325 0.139111, -0.033355 0.070088 0.159562, -0.058953 0.065786 0.154720, -0.082242 0.051766 0.171222, 0.080805 0.019592 0.105749, -0.080805 0.019592 0.105749, -0.083843 0.004175 0.117473, 0.068785 0.055028 0.099543, 0.071947 0.054862 0.124125, 0.075505 0.038481 0.103473, 0.080171 0.034204 0.126995, -0.075505 0.038481 0.103473, -0.068785 0.055028 0.099543, 0.082897 0.003692 0.090980, 0.081212 0.017972 0.086320, -0.082897 0.003692 0.090980, -0.081212 0.017972 0.086320, 0.077334 0.037007 0.072832, 0.070236 0.053702 0.070041, -0.070236 0.053702 0.070041, -0.077334 0.037007 0.072832, 0.084986 0.004198 0.072691, 0.083549 0.018771 0.068402, -0.084986 0.004198 0.072691, -0.083549 0.018771 0.068402, 0.092802 0.008983 0.037573, 0.090568 0.021642 0.035586, 0.085825 0.036245 0.034017, 0.078801 0.049012 0.031339, -0.092802 0.008983 0.037573, -0.090568 0.021642 0.035586, -0.085825 0.036245 0.034017, -0.078801 0.049012 0.031339, 0.094567 0.009171 0.001199, 0.092075 0.021167 0.001101, 0.087109 0.034131 0.000687, 0.080662 0.045291 0.001519, -0.092075 0.021167 0.001101, -0.094567 0.009171 0.001199, -0.080662 0.045291 0.001519, -0.087109 0.034131 0.000687, 0.077592 0.024745 0.231151, 0.075699 0.039508 0.221445, 0.057517 0.058615 0.199264, 0.053666 0.055869 0.208785, 0.069112 0.044741 0.218989, -0.069112 0.044741 0.218989, -0.053666 0.055869 0.208785, -0.057517 0.058615 0.199264, 0.061644 0.061607 0.100635, 0.073083 0.058708 0.145366, 0.055817 0.065878 0.124462, -0.055817 0.065878 0.124462, -0.061644 0.061607 0.100635, 0.044513 0.068455 0.116088, 0.015973 0.070410 0.113478, -0.000000 0.070799 0.114523, -0.015973 0.070410 0.113478, 0.053337 0.063647 0.101850, -0.053337 0.063647 0.101850, 0.042045 0.064871 0.093896, 0.019477 0.066647 0.091996, -0.000000 0.067103 0.091626, -0.019477 0.066647 0.091996, -0.042045 0.064871 0.093896, 0.041843 0.062795 0.063669, 0.015325 0.064486 0.058042, -0.000000 0.064779 0.058192, -0.015325 0.064486 0.058042, 0.064438 0.058881 0.059851, -0.064438 0.058881 0.059851, -0.041843 0.062795 0.063669, 0.070670 0.054597 0.031774, -0.070670 0.054597 0.031774, 0.037839 0.058054 -0.001464, 0.017594 0.059677 0.000072, -0.017594 0.059677 0.000072, 0.073006 0.050475 0.001571, 0.052162 0.056158 0.000909, -0.052162 0.056158 0.000909, -0.073006 0.050475 0.001571, -0.000000 0.060246 0.000811, 0.080435 0.051716 0.154289, -0.037839 0.058054 -0.001464, -0.044513 0.068455 0.116088, -0.048705 0.068488 0.141926, -0.049373 0.067883 0.167419, -0.036589 0.063848 0.198005, -0.049798 0.061871 0.197339, -0.038333 0.057640 0.213332, -0.031953 0.049125 0.226654, -0.089771 -0.000279 0.144676, -0.089564 0.012337 0.146143, -0.086763 0.038561 0.169305, -0.086131 0.041615 0.176285, -0.085049 0.039463 0.201483, -0.084658 0.032322 0.214400, -0.084398 0.013734 0.226815, -0.084463 -0.001102 0.228705, -0.083647 -0.003389 0.231879,
]
}
coordIndex [
2 1 3 -1 4 5 6 -1 7 2 3 -1 8 9 10 -1 11 12 13 -1 13 12 14 -1 14 15 13 -1 13 15 16 -1 17 18 19 -1 20 21 22 -1 22 23 24 -1 24 20 22 -1 25 26 27 -1 25 27 28 -1 28 29 25 -1 30 31 0 -1 8 32 9 -1 9 32 4 -1 31 33 0 -1 0 33 1 -1 34 3 1 -1 35 3 34 -1 35 36 37 -1 37 7 35 -1 35 7 3 -1 38 39 40 -1 40 41 38 -1 42 43 44 -1 42 44 45 -1 8 10 46 -1 46 10 47 -1 47 48 46 -1 49 8 46 -1 32 8 49 -1 32 50 4 -1 4 50 5 -1 51 52 53 -1 51 53 54 -1 54 55 51 -1 56 5 50 -1 50 57 56 -1 53 58 59 -1 59 58 60 -1 54 53 59 -1 61 62 63 -1 63 62 57 -1 63 57 50 -1 64 61 63 -1 65 66 67 -1 65 68 69 -1 70 71 72 -1 72 28 70 -1 28 27 70 -1 73 74 75 -1 76 74 73 -1 77 78 79 -1 80 81 79 -1 79 81 82 -1 82 77 79 -1 74 83 84 -1 85 86 87 -1 87 86 77 -1 87 77 82 -1 88 89 84 -1 84 83 88 -1 73 90 66 -1 66 90 67 -1 76 73 66 -1 91 92 21 -1 91 21 20 -1 11 93 94 -1 13 93 11 -1 17 19 95 -1 95 96 17 -1 96 97 17 -1 27 26 80 -1 26 98 80 -1 99 79 78 -1 99 70 27 -1 27 80 99 -1 80 79 99 -1 89 100 84 -1 85 101 102 -1 103 104 105 -1 104 106 105 -1 105 106 84 -1 84 100 105 -1 107 82 108 -1 107 101 85 -1 85 87 107 -1 107 87 82 -1 109 110 100 -1 100 89 109 -1 111 102 101 -1 101 112 111 -1 110 113 105 -1 105 113 114 -1 114 103 105 -1 100 110 105 -1 107 108 115 -1 115 116 107 -1 107 116 112 -1 107 112 101 -1 117 118 110 -1 110 109 117 -1 119 111 112 -1 112 120 119 -1 110 118 113 -1 116 120 112 -1 121 122 118 -1 118 117 121 -1 114 113 123 -1 123 113 118 -1 118 122 123 -1 124 114 123 -1 125 119 120 -1 120 126 125 -1 127 126 120 -1 120 116 127 -1 127 116 115 -1 127 115 128 -1 121 129 130 -1 130 122 121 -1 123 122 130 -1 130 131 123 -1 123 131 132 -1 132 124 123 -1 125 126 133 -1 133 134 125 -1 127 128 135 -1 135 136 127 -1 127 136 133 -1 133 126 127 -1 34 1 137 -1 137 1 33 -1 138 34 137 -1 139 140 141 -1 141 140 36 -1 36 35 141 -1 141 35 34 -1 141 34 138 -1 15 14 39 -1 39 38 15 -1 38 16 15 -1 18 42 45 -1 49 46 142 -1 142 46 48 -1 48 143 142 -1 142 143 144 -1 64 49 142 -1 50 32 63 -1 63 32 49 -1 63 49 64 -1 104 145 146 -1 146 145 147 -1 146 147 92 -1 92 91 146 -1 148 149 81 -1 81 149 82 -1 81 80 98 -1 98 148 81 -1 93 150 151 -1 151 94 93 -1 152 153 96 -1 95 152 96 -1 145 104 103 -1 145 154 147 -1 108 82 149 -1 148 155 149 -1 150 156 157 -1 157 151 150 -1 153 152 158 -1 158 159 153 -1 145 156 154 -1 145 103 114 -1 155 160 149 -1 115 108 149 -1 157 156 161 -1 157 161 162 -1 159 158 163 -1 163 164 159 -1 165 161 145 -1 165 145 114 -1 115 149 166 -1 149 167 166 -1 165 114 124 -1 124 168 165 -1 166 169 128 -1 128 115 166 -1 161 170 171 -1 171 162 161 -1 163 172 164 -1 168 124 132 -1 132 173 168 -1 168 173 174 -1 175 176 169 -1 169 176 135 -1 135 128 169 -1 163 177 172 -1 171 177 163 -1 162 171 163 -1 157 162 163 -1 163 158 157 -1 151 157 158 -1 158 152 151 -1 94 151 152 -1 94 152 95 -1 12 11 94 -1 12 94 95 -1 95 19 12 -1 19 14 12 -1 45 39 14 -1 44 40 39 -1 45 44 39 -1 104 75 106 -1 75 74 106 -1 106 74 84 -1 178 146 91 -1 178 73 75 -1 178 75 104 -1 104 146 178 -1 90 91 20 -1 20 67 90 -1 73 178 90 -1 90 178 91 -1 67 20 24 -1 67 24 68 -1 68 65 67 -1 54 59 137 -1 137 59 60 -1 137 60 138 -1 33 54 137 -1 55 54 33 -1 33 31 55 -1 167 164 172 -1 172 179 167 -1 164 167 159 -1 167 160 159 -1 180 153 159 -1 159 160 180 -1 181 96 153 -1 153 180 181 -1 96 181 97 -1 97 181 182 -1 182 183 18 -1 18 17 182 -1 182 17 97 -1 184 183 182 -1 183 184 185 -1 183 185 42 -1 42 18 183 -1 185 186 43 -1 43 42 185 -1 187 188 85 -1 85 102 187 -1 85 188 86 -1 78 86 189 -1 77 86 78 -1 190 78 189 -1 70 99 190 -1 190 99 78 -1 191 72 71 -1 70 190 71 -1 62 192 193 -1 62 193 57 -1 61 192 62 -1 193 194 195 -1 195 56 57 -1 57 193 195 -1 168 174 170 -1 165 168 170 -1 170 161 165 -1 145 161 156 -1 156 150 154 -1 150 147 154 -1 147 150 93 -1 93 92 147 -1 92 93 13 -1 13 21 92 -1 21 139 22 -1 21 13 16 -1 16 139 21 -1 140 139 16 -1 140 16 38 -1 38 36 140 -1 36 38 41 -1 41 37 36 -1 41 7 37 -1 47 10 186 -1 48 47 186 -1 186 185 48 -1 143 48 185 -1 185 184 143 -1 184 144 143 -1 26 144 184 -1 184 182 26 -1 25 144 26 -1 98 26 182 -1 182 181 98 -1 148 98 181 -1 181 180 148 -1 155 180 160 -1 155 148 180 -1 160 167 149 -1 166 167 179 -1 179 169 166 -1 179 175 169 -1 72 191 192 -1 72 192 61 -1 28 72 61 -1 28 61 64 -1 29 142 144 -1 29 144 25 -1 29 28 64 -1 64 142 29 -1 18 45 19 -1 19 45 14 -1 22 139 23 -1 139 141 23 -1 23 141 138 -1 138 24 23 -1 138 60 24 -1 60 68 24 -1 60 58 68 -1 58 69 68 -1
]
creaseAngle 2
}
}
}
Loading

0 comments on commit 83ed080

Please sign in to comment.