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

View File

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