mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
mobile rc: blacklist for /rosout messages
This commit is contained in:
@@ -65,8 +65,12 @@ new ROSLIB.Topic({
|
||||
name: '/rosout_agg',
|
||||
messageType: 'rosgraph_msgs/Log'
|
||||
}).subscribe(function(message) {
|
||||
var BLACKLIST = ['CMD: ', 'PR: '];
|
||||
if(message.level >= 4) {
|
||||
if (message.msg.startsWith('CMD: ')) {
|
||||
if (BLACKLIST.some(function(e) {
|
||||
return message.msg.indexOf(e) != -1;
|
||||
})) {
|
||||
console.log('Filtered out message ' + message.msg);
|
||||
return;
|
||||
}
|
||||
callNativeApp('notification', message);
|
||||
|
||||
Reference in New Issue
Block a user