Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rocon_remocon] problem of web app pairing mode #146

Open
dwlee opened this issue Jul 24, 2014 · 2 comments
Open

[rocon_remocon] problem of web app pairing mode #146

dwlee opened this issue Jul 24, 2014 · 2 comments
Assignees
Milestone

Comments

@dwlee
Copy link
Collaborator

dwlee commented Jul 24, 2014

Generally, In pairing mode, When rapp is launched, the remocon remembered the interaction information with launched rapp and registered the callback function called when rapp died. So, when the rapp is terminate, the registered callback is called and then the pairing app running in pc or robot is stopped by interaction manager.
However, in case of web app (using web browser) pairing mode, it died as soon as it is stared by remocon. So, the remocon decides that web app died and pairing app is terminated. I think the problem is the starting method of web browser in python.

@dwlee dwlee added this to the Todo milestone Jul 24, 2014
@dwlee dwlee self-assigned this Jul 24, 2014
@stonier
Copy link
Member

stonier commented Jul 25, 2014

Problem is here

process = rocon_python_utils.system.Popen([web_browser, "--new-window", url], postexec_fn=process_listener)

It looks like this call returns immediately (not blocking) so if it's paired, it will close down the pairing immediately.

@stonier
Copy link
Member

stonier commented Jul 25, 2014

If browsers can't help us here, we need either

  1. Maybe Qt webkit to help us watchdog it (horrible web app support?) OR
  2. Web apps have to send a ping 'I'm alive' signal (sounds complicated?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants