Hello Vallabh,
Thanks for your support, I check that java code. it’s working fine.
But am using html java script code with java interface. So is there any process to get 6 digit
Decimal number from html code.
Or we have to use java ros library code as like above given code…
Am using this java script code.
var listenerGlobalPosition = new ROSLIB.Topic({
ros :ros,
name : ‘/’+namespace+’/mavros/global_position/global’,
messageType : ‘sensor_msgs/NavSatFix’,
throttle_rate: 1000
});
listenerGlobalPosition.subscribe(function(message) {
$('#posx').text(message.latitude);
$('#posy').text(message.longitude);
$('#posz').text(message.altitude);
console.log('help me out');
Android.showCurrentLocation(message.latitude, message.longitude, message.altitude);
});