removed console logs and fixed loading bug

This commit is contained in:
Rohit
2019-07-08 16:23:56 -04:00
parent 32361e16bd
commit c6fac6e470
2 changed files with 1 additions and 9 deletions

View File

@@ -208,7 +208,6 @@ class ArmControls
} }
if (forceTypeCode == 'observed') { if (forceTypeCode == 'observed') {
var forceType = "Observed"; var forceType = "Observed";
console.log(message)
} }
if (forceTypeCode == 'commanded') { if (forceTypeCode == 'commanded') {
var forceType = "Commanded"; var forceType = "Commanded";
@@ -375,8 +374,6 @@ playbackStatus.subscribe(function(message) {
message = JSON.parse(message.data); message = JSON.parse(message.data);
status = message.status; status = message.status;
bagName = message.bag_file; bagName = message.bag_file;
console.log("status");
console.log(status);
if (status != lastPlaybackStatus) { if (status != lastPlaybackStatus) {
if (status === "playing") { if (status === "playing") {
@@ -385,9 +382,7 @@ playbackStatus.subscribe(function(message) {
triggerService('/left/aescape/mode/activateReadyController'); triggerService('/left/aescape/mode/activateReadyController');
triggerService('/right/aescape/mode/activateReadyController'); triggerService('/right/aescape/mode/activateReadyController');
displayTaggingOptions('play'); displayTaggingOptions('play');
} else if (status === "loaded" && lastPlaybackStatus !== "playing") { } else if (status === "loaded") {
console.log("lastPlaybackStatus");
console.log(lastPlaybackStatus);
displayMessage(true, "Loaded the selected bag file!") displayMessage(true, "Loaded the selected bag file!")
} }
lastPlaybackStatus = status; lastPlaybackStatus = status;

View File

@@ -327,9 +327,6 @@ function loadSelectedBagFile(selectedBagName, singleArmMode, callback) {
var toSendString = JSON.stringify(toSend); var toSendString = JSON.stringify(toSend);
console.log("toSend string")
console.log(toSendString)
var topic = new ROSLIB.Topic({ var topic = new ROSLIB.Topic({
ros : ros, ros : ros,
name : "/left/playback/control", name : "/left/playback/control",