upgrade code for new simulator version

* add new rotation axis
 * resize image if necessary
 * add debug logs
This commit is contained in:
2021-10-17 19:03:29 +02:00
parent 2bdc945ec5
commit 3cd3d89b60
39 changed files with 7082 additions and 46 deletions

View File

@ -5,9 +5,9 @@ import (
"github.com/cyrilix/robocar-simulator/pkg/gateway"
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/golang/protobuf/proto"
"go.uber.org/zap"
"sync"
"time"
"go.uber.org/zap"
)
func NewMsgPublisher(srcEvents gateway.SimulatorSource, p Publisher, topicFrame, topicSteering, topicThrottle string) *MsgPublisher {
@ -113,6 +113,7 @@ func (m *MsgPublisher) listenFrame() {
msg := <-msgChan
if msg == nil {
// channel closed
logr.Info("received empty message, channel closed")
break
}
logr.Debugf("new frame %v", msg.Id)