mit-acl / android_loomo_ros_core

Android app to enable ROS on a Loomo robot
MIT License
23 stars 14 forks source link

Crash on start #7

Open Olumayowa-Olowomeye opened 2 years ago

Olumayowa-Olowomeye commented 2 years ago

Hello, I installed the app using the apk but whenever I try to start the app, it almost immediately crashes. There is a brief error where it says "Unfortunately Loomo ROS has stopped working". I'm not really sure where to begin fixing this and any help would be appreciated

mfe7 commented 2 years ago

Yeah...... I also remember having a tough time debugging with this codebase (but haven't looked at it in a couple years now). Have you confirmed that the network is set up properly? I vaguely remember that it would crash if it couldn't find the ROS master, for instance.

My guess is that this will require some debugging of the source code, rather than installing via apk. There are probably some good ways to pinpoint the exact line that's causing the crash, but to start you might consider adding some print statements throughout the initialization process. @susanni may remember more about this?

Olumayowa-Olowomeye commented 2 years ago

I tried to setup the ntp server with the config files you provided but I'm not sure if I did it correctly. I replaced the net.conf file on my ubuntu PC with the ntp_server.conf file but I'm not able to place the ntp_client.conf file on the loomo. I tried using ssh to place it on the loomo but there is no existing ntp.conf and I cant write to it.

susanni commented 2 years ago

It's been so long, but I just looked through some of my old notes. I think @mfe7 is right that the app will crash if it can't connect to the ROS master.

The ROS master has to be up before opening the app. This comment block notes that the ROS master URI is being pulled from params.yaml so make sure the yaml is updated with the correct IP address of the ROS master and the updated yaml file is stored on the Loomo.

Some extra info from my notes that may be useful: