Skip to content

Commit

Permalink
clean up logs and add place holder for map tile server
Browse files Browse the repository at this point in the history
  • Loading branch information
leonzz committed Apr 1, 2019
1 parent 26d9008 commit 1fb2ec7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
3 changes: 3 additions & 0 deletions map-tile-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# map-tile-server

Place holder. To be filled.
29 changes: 3 additions & 26 deletions rosbridge-xviz-connector/xviz-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ xvizMetaBuider.stream('/tracklets/objects')
.type('polygon').streamStyle({
"extrude": true,
"fill_color": "#50B3FF80",
"stroke_color": "#50B3FF"
"stroke_color": "#FF0000"
});
xvizUIBuilder.child( xvizUIBuilder.panel({name: 'Camera'}) ).child( xvizUIBuilder.video({cameras:["/camera/image_00"]}) );
xvizMetaBuider.ui(xvizUIBuilder);
Expand Down Expand Up @@ -66,28 +66,7 @@ function addLocationToCache(lat, lng, alt, heading, time) {
timestamp: time,
heading: 1.57+heading//90 degree of difference between xviz frame
};
console.log("new pose (time, lat, lng, heading): ", time, lat, lng, heading)
}


function addCarPathToFrame(frameNum,Vertex){

let frame = _frameCache.get(frameNum);

if (frame) {
frame.pathplan = {
polygon: Vertex
};
} else {
_frameCache.set(frameNum, {
pathplan: {
polygon: Vertex
}
});
}

console.log("new path Vector, frame, position ", frameNum);

//console.log("new pose (time, lat, lng, heading): ", time, lat, lng, heading)
}

function tryServeFrame(){
Expand Down Expand Up @@ -130,8 +109,6 @@ function tryServeFrame(){
return;
}



class ConnectionContext {
constructor() {
this.connectionID = connectionId();
Expand Down Expand Up @@ -197,7 +174,7 @@ class ConnectionContext {
} else {
this.ws.send(frame, {compress: true});
}
this.log("< sent frame.")
//this.log(`< sent frame.`);
}
}

Expand Down

0 comments on commit 1fb2ec7

Please sign in to comment.