OCCRA
Go to Post "When I joined the team, I was told that we'd be in the shop for six weeks. I STILL haven't seen a single boutique, and now they have me dumpster diving for robot parts! I quit!" - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-04-2017, 05:19 PM
clebio clebio is offline
Registered User
FRC #1775
 
Join Date: Sep 2017
Location: Kansas City
Posts: 6
clebio is an unknown quantity at this point
Connecting Eclipse Java Simulation to a remote Gazebo instance

I am trying to run Gazebo on my desktop PC and Eclipse on my laptop and connect remotely, but Eclipse doesn't connect. Iím not sure whether there's build properties I need to provide to Eclipse, or what.

Based on this page [1], I tried setting either roboRIO-TEAM-FRC.local or roboRIO-TEAM-FRC.lan in my /etc/hosts file on the laptop (eclipse machine), but those don't seem to matter. Based on the note at the bottom of these pages [2, 3], I tried exporting GAZEBO_MASTER_URI and GAZEBO_IP. It seems like the MASTER_URI is the right one:

Code:
export GAZEBO_MASTER_URI=172.16.x.y:11345
When I set that and then launch Eclipse from the same terminal window (not from the OS' program launcher), it tries to connect, but gives a "Connection refused" error:

Code:
     [echo] [simulate] Running Code.
     [java] WARNING|Gazebo Transport: Using custom host: 172.16.1.15
     [java] resources = |sun.misc.CompoundEnumeration@1e26db8|
     [java] platform: /Linux/i386/
     [java] java.net.ConnectException: Connection refused (Connection refused)
     [java] 	at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java] 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
     [java] 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
     [java] 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
     [java] 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
     [java] 	at java.net.Socket.connect(Socket.java:589)
     [java] 	at java.net.Socket.connect(Socket.java:538)
     [java] 	at java.net.Socket.<init>(Socket.java:434)
     [java] 	at java.net.Socket.<init>(Socket.java:211)
     [java] 	at org.gazebosim.transport.Connection.connect(Connection.java:51)
     [java] 	at org.gazebosim.transport.Subscriber.handle_connect(Subscriber.java:57)
     [java] 	at org.gazebosim.transport.Subscriber.access$000(Subscriber.java:20)
     [java] 	at org.gazebosim.transport.Subscriber$1.run(Subscriber.java:47)
     [java] 	at java.lang.Thread.run(Thread.java:748)
I assume that the sim_ds program should run on the laptop (alongside Eclipse) since that's where I want to plug in my controller. But I'm not entirely clear on what other ports or data paths exist between Eclipse, sim_ds, and Gazebo.

Ultimately I'd like to get something like this multi-user simulation going for the team that I'm helping.

[1]: https://wpilib.screenstepslive.com/s...to-the-roborio
[2]: https://wpilib.screenstepslive.com/s...-in-simulation
[3]: http://petermitrano.github.io/WPILib...va_gazebo.html
  #2   Spotlight this post!  
Unread 09-23-2017, 08:08 AM
clebio clebio is offline
Registered User
FRC #1775
 
Join Date: Sep 2017
Location: Kansas City
Posts: 6
clebio is an unknown quantity at this point
Re: Connecting Eclipse Java Simulation to a remote Gazebo instance

Bump: Anyone have any advice on this?
  #3   Spotlight this post!  
Unread 10-08-2017, 10:21 AM
clebio clebio is offline
Registered User
FRC #1775
 
Join Date: Sep 2017
Location: Kansas City
Posts: 6
clebio is an unknown quantity at this point
Re: Connecting Eclipse Java Simulation to a remote Gazebo instance

Quote:
Originally Posted by clebio View Post
Bump: Anyone have any advice on this?
Bumpitty-bump. Little help?
  #4   Spotlight this post!  
Unread 10-08-2017, 11:53 AM
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #6367 (), FRC #7240 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,396
virtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond repute
Re: Connecting Eclipse Java Simulation to a remote Gazebo instance

While I can't speak to your problem directly, I believe gazebo is generally not expected to work right now (or if it does, then it's really annoying to do). There's someone working on updates for 2018, and I expect there will be a number of simulation-related updates this year.
__________________
Maintainer of RobotPy (Python for FRC) & WPILib Contributor
Creator of pyfrc (Robot Simulator + utilities for Python), pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript), and lots more...

Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:08 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi