Comments (12)
Hey,
it might be possible that the message definitions of our app and your compiled ROS version are different. I'll take a close look and test it again.
from ros-mobile-android.
Okay, I took a closer look on it.
We're currently depend on the message definitions of Melodic. In the BatteryState msg (Noetic) there is an additional field "temperature".
So there are several possibilities now:
- We have to include a new feature, where you could choose the ROS version in the app. This would be a huge pain thinking about the current implementation of ROSjava.
- You could change the message definition of BatteryState in Noetic to exclude "temperature".
from ros-mobile-android.
I've found a discussion about the changed BatteryState Msg. Apparently it seems that you can republish the BatteryState in the old format, but I'll have to take another look at it.
from ros-mobile-android.
We are eagerly waiting for an update of ROSjava to fix most of the problems here ... but unfortunately nothing happens for years.
from ros-mobile-android.
I tried to change the BatteryState.h
message to fix the error (Although, not recommended but just for testing). The error got fixed, but ROS Mobile app got crashed.
from ros-mobile-android.
Yes, Thank you for your support.
I think, It's much better to go with 2nd option.
with second option do you mean, change the BatteryState.msg
in /opt/ros/noetic
or use a Custom msg based on BatteryState.msg
without the temperature field.
from ros-mobile-android.
Hi,
So, I defined BatteryState.msg
as a custom msg in my_package
without the temperature
field (as you recommended). All the errors are gone and the app is also running fine.
But I am again unable to see any data on battery GUI.
This is the code for publishing the battery data:
#include <my_package/BatteryState.h>
ros::Publisher battery_pub = nh.advertise<my_package::BatteryState>("battery", 10);
my_package::BatteryState batt_msgs;
batt_msgs.header.stamp = ros::Time::now();
batt_msgs.present = true;
batt_msgs.percentage = percentage_cap;
batt_msgs.voltage = voltage;
batt_msgs.current = current;
battery_pub.publish(batt_msgs);
This is the msg definition: msg file
from ros-mobile-android.
Mhh, do you use the Play Store version of the app or the custom build from this repo? My question would be if you have access to the logs and if there is an error issued.
from ros-mobile-android.
I'm using the play Store version of the app.
from ros-mobile-android.
So I tried to change the message definition of BatteryState
in noetic to exclude the temperature
field.
I used the rqt_graph
to see the node communication. This is what I found,
-
When I use
sensor_msgs/BatteryState
to publish the/battery
topic. The battery node created by ROS Mobile is communicating with the battery topic. But I don't see the data on GUI. -
When I use
my_package/BatteryState
to publish the/battery
topic. The battery node created by ROS Mobile is NOT communicating with the battery topic. And of course, I don't see the data on GUI.
have you tried the app with removing the temperature
field withnoetic
?
from ros-mobile-android.
So, I tried the solution suggested in above discussion.
I wrote a node in between the GUI and BatteryState publisher, Which converts noetic msgs
to melodic
. It did not help either !
can you provide some help. I am out of options now ;(
from ros-mobile-android.
Having the same issue, any update on this?
from ros-mobile-android.
Related Issues (20)
- viz Unable to display grid map HOT 1
- Problem showing camera stream in Viz HOT 3
- Sending smartphone camera image to robot HOT 2
- viz2d can not load grid map
- Debug Widget HOT 2
- Does this only work if the robot/ linux computer is connected to the same WiFi as Android Phone?
- How to save the occupancy grid map using this app.
- How to access ROS parameters? HOT 3
- Could not get resource HOT 3
- Resolved unknown host raw.githubunsercontent.com
- Unable to drive the mobile base forward and reverse due to thin GUI interface HOT 11
- Multiple joysticks on the same topic don't work HOT 6
- Logger component not updating HOT 6
- Possibility to save configurations HOT 3
- No data shown in VIZ tab. HOT 2
- Visualizing Pointcloud2 message type HOT 4
- Connecting to ROS and give error " HTTP method 'POST' not allowed" HOT 3
- How to use realsense as camera, and display in ROS-Mobile HOT 1
- I want to use my phone as a gps module HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros-mobile-android.