changed call to service rather than publisher for start playing
This commit is contained in:
@@ -381,6 +381,7 @@ playbackStatus.subscribe(function(message) {
|
||||
if (status === "playing") {
|
||||
|
||||
} else if (status === "stopped") {
|
||||
triggerService('/aescape/bags/stopPlayingBag');
|
||||
triggerService('/left/aescape/mode/activateReadyController');
|
||||
triggerService('/right/aescape/mode/activateReadyController');
|
||||
displayTaggingOptions('play');
|
||||
|
||||
@@ -317,15 +317,16 @@ function loadSelectedBagFile(selectedBagId, singleArmMode, callback) {
|
||||
single_arm : singleArmMode
|
||||
}
|
||||
|
||||
// triggerService('/aescape/bags/startPlayingRecording', toSend, function(error, result) {
|
||||
// if(!result) {
|
||||
// return callback("Something went wrong in the backend while updating.");
|
||||
// }
|
||||
// else {
|
||||
// return callback();
|
||||
// }
|
||||
// })
|
||||
triggerService('/aescape/bags/startPlayingRecording', toSend, function(error, result) {
|
||||
if(!result) {
|
||||
return callback("Something went wrong in the backend while updating.");
|
||||
}
|
||||
else {
|
||||
return callback();
|
||||
}
|
||||
})
|
||||
|
||||
/*
|
||||
var toSendString = JSON.stringify(toSend);
|
||||
|
||||
var topic = new ROSLIB.Topic({
|
||||
@@ -337,6 +338,7 @@ function loadSelectedBagFile(selectedBagId, singleArmMode, callback) {
|
||||
var msg = new ROSLIB.Message({data:toSendString});
|
||||
|
||||
topic.publish(msg);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user