Skip to content

Commit 2302c37

Browse files
committed
Update custom ER-Force RobotSpecs (remove dribbler_height)
1 parent 202987f commit 2302c37

17 files changed

+47
-71
lines changed

config/robot-specs.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ robot-specs:
1515
vel_angular_max: 20
1616
custom_erforce:
1717
shoot_radius: 0.067
18-
dribbler_height: 0.04
1918
dribbler_width: 0.07
2019
"ER-Force":
2120
radius: 0.09
@@ -33,5 +32,4 @@ robot-specs:
3332
vel_angular_max: 20
3433
custom_erforce:
3534
shoot_radius: 0.067
36-
dribbler_height: 0.04
3735
dribbler_width: 0.07

generateProto.sh

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,8 @@ set -e
55
# Print commands
66
set -x
77

8-
# common GC
9-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_gc_common.proto
10-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_gc_geometry.proto
8+
# Update to latest protobuf compiler
9+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
1110

12-
# vision
13-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_vision_detection.proto
14-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_vision_geometry.proto
15-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_vision_wrapper.proto
16-
17-
# tracked vision
18-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_vision_detection_tracked.proto
19-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_vision_wrapper_tracked.proto
20-
21-
# game events
22-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_gc_game_event.proto
23-
24-
# referee message
25-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_gc_referee_message.proto
26-
27-
# simulation control
28-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_simulation_custom_erforce_robot_spec.proto
29-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_simulation_error.proto
30-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_simulation_config.proto
31-
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/ssl_simulation_control.proto
11+
# Generate all protobuf code
12+
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/*.proto

internal/geom/ssl_gc_geometry.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/referee/ssl_gc_common.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/referee/ssl_gc_game_event.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/referee/ssl_gc_referee_message.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/simctl/handler_robot_specs.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ type Limits struct {
3434
}
3535

3636
type CustomRobotSpecErForce struct {
37-
ShootRadius float32 `yaml:"shoot_radius"`
38-
DribblerHeight float32 `yaml:"dribbler_height"`
39-
DribblerWidth float32 `yaml:"dribbler_width"`
37+
ShootRadius float32 `yaml:"shoot_radius"`
38+
DribblerWidth float32 `yaml:"dribbler_width"`
4039
}
4140

4241
type RobotSpecHandler struct {
@@ -128,9 +127,8 @@ func mapRobotSpec(spec RobotSpec) (protoSpec *RobotSpecs) {
128127
protoSpec.Limits = mapRobotLimits(spec.Limits)
129128

130129
customErForce := RobotSpecErForce{
131-
ShootRadius: &spec.CustomErforce.ShootRadius,
132-
DribblerHeight: &spec.CustomErforce.DribblerHeight,
133-
DribblerWidth: &spec.CustomErforce.DribblerWidth,
130+
ShootRadius: &spec.CustomErforce.ShootRadius,
131+
DribblerWidth: &spec.CustomErforce.DribblerWidth,
134132
}
135133
customErForceSerialized, err := proto.Marshal(&customErForce)
136134
if err != nil {

internal/simctl/ssl_simulation_config.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/simctl/ssl_simulation_control.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/simctl/ssl_simulation_custom_erforce_robot_spec.pb.go

Lines changed: 14 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)