Go to Post since when is not sleeping, caring more about the robot and such bad for you? If it is how come I didn't get the memo? :ahh: - Sakura141 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-01-2015, 21:45
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Custom models for frcsim?

Haven't found any documentation to do this. Of course, haven't looked terribly hard either...
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
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
  #2   Spotlight this post!  
Unread 07-01-2015, 22:49
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Post Re: Custom models for frcsim?

You will probably need to make a custom Gazebo Plugin that describes your robot's kinematics and control signals. I also haven't looked to terribly deep into it myself yet, but I have worked with Gazebo quite a bit in the past.

IIRC: You can define the structure of your robot in an XML type file where you specify each joint and link in your system, then write a c++ plugin that describes how to control each joint.
  #3   Spotlight this post!  
Unread 07-01-2015, 22:52
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Custom models for frcsim?

Quote:
Originally Posted by dawonn View Post
You will probably need to make a custom Gazebo Plugin that describes your robot's kinematics and control signals. I also haven't looked to terribly deep into it myself yet, but I have worked with Gazebo quite a bit in the past.

IIRC: You can define the structure of your robot in an XML type file where you specify each joint and link in your system, then write a c++ plugin that describes how to control each joint.
Right, the frcsim plugins provide generic functionality to control a joint, so ideally those are designed such that they will work with any general robot (for example, pacsim and gearsbot use the same binaries).

And yeah, I'm vaguely aware of the XML, but I'm not sure of the format, and I suspect there's something one needs to do to create the world file.. etc. I'd rather not have to reverse engineer it if FIRST has already provided tools to do these things (which, I feel like I read about them somewhere... maybe)
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
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
  #4   Spotlight this post!  
Unread 07-01-2015, 23:17
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Re: Custom models for frcsim?

I haven't seen anything else provided by FIRST. It would be pretty cool if someone would crate a world model of the areana and share it on CD though, eh? Perhaps I might take a look at doing that...

The XML file is specific to Gazebo, It's not that bad once you get into it but it has a pretty steep learning curve.
  #5   Spotlight this post!  
Unread 08-01-2015, 09:22
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Custom models for frcsim?

We aren't officially supporting the addition of your own models to Gazebo. There is a plugin that was developed last summer supported by SolidWorks and OSRF and we will continue to work on it with the hope of making it available in the fall. The idea is that the model can be annotated with the sensor and actuator information for your robot, and the plugin exports the model with that information in URDF format that can be imported into Gazebo. Then a plugin for Gazebo allows the simulator edition of WPILib to talk to simulated model. Look for a beta in the spring or early summer that you can start playing with.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #6   Spotlight this post!  
Unread 15-01-2015, 15:26
jman1783 jman1783 is offline
Registered User
FRC #2900 (Mighty Penguins)
Team Role: Engineer
 
Join Date: Dec 2009
Rookie Year: 1999
Location: Arlington, VA
Posts: 14
jman1783 is an unknown quantity at this point
Re: Custom models for frcsim?

All,

I will echo Brad - this is not yet supported, although it IS possible for enterprising teams. I built up a very simple FTC robot this way from a team's CAD assemblies, but it wasn't linked to the WPIlib code, which is more tricky.


Brad,

It's difficult to do at the moment, but could we throw together best practices for conforming to the robotmap.xml file, and let teams use the old CAD exporter, or the alpha version of the new exporter?
__________________
"Just remember - whether you think you can or you think you can't, you're right." -Stewart Gilligan Griffin
  #7   Spotlight this post!  
Unread 19-01-2015, 12:49
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Custom models for frcsim?

Quote:
Originally Posted by jman1783 View Post
All,
It's difficult to do at the moment, but could we throw together best practices for conforming to the robotmap.xml file, and let teams use the old CAD exporter, or the alpha version of the new exporter?
We'll try to post something for people to play with, but with the understanding that it is not yet finished. Maybe sometime this week.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 02:50.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi