Skip to content

Commit 69b3a3f

Browse files
committed
[cleanup] Remove vision-client backend integration
1 parent 22ba532 commit 69b3a3f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cmd/ssl-game-controller/main.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ package main
33
import (
44
"flag"
55
"github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller"
6-
"github.com/RoboCup-SSL/ssl-vision-client/pkg/vision"
76
"github.com/gobuffalo/packr"
87
"log"
98
"net/http"
109
)
1110

1211
var address = flag.String("address", "localhost:8081", "The address on which the UI and API is served, default: localhost:8081")
13-
var visionAddress = flag.String("visionAddress", "224.5.23.2:10006", "The multicast address of ssl-vision, default: 224.5.23.2:10006")
1412

1513
func main() {
1614
flag.Parse()
1715

1816
setupGameController()
19-
setupVisionClient()
2017
setupUi()
2118

2219
err := http.ListenAndServe(*address, nil)
@@ -32,14 +29,6 @@ func setupGameController() {
3229
http.HandleFunc("/api/control", gameController.ApiServer.WsHandler)
3330
}
3431

35-
func setupVisionClient() {
36-
receiver := vision.NewReceiver()
37-
publisher := vision.NewPublisher()
38-
publisher.PackageProvider = receiver.ToPackage
39-
http.HandleFunc("/api/vision", publisher.Handler)
40-
go receiver.Receive(*visionAddress)
41-
}
42-
4332
func setupUi() {
4433
box := packr.NewBox("../../dist")
4534
http.Handle("/", http.FileServer(box))

0 commit comments

Comments
 (0)