Go to Post When Andy Baker holds an iPhone 4 in his left hand, the signal [i]increases[/i]. - Billfred [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 01-01-2017, 11:19 AM
DaveFrederick's Avatar
DaveFrederick DaveFrederick is offline
Registered User
FRC #1895
 
Join Date: Jan 2009
Location: Manassas,VA
Posts: 36
DaveFrederick is a jewel in the roughDaveFrederick is a jewel in the roughDaveFrederick is a jewel in the rough
Re: FRCSim, Gazebo v7, and GearsBot example

I noticed that some of the sensors files need to be renamed.
( e.g., cp libencoder.so libgz_encoder.so )

See lesson learned #4 below.
Watch for errors on startup and create copies of the files as required.
Stick with FRCSIM. I think this will be an important tool once we learn and document how to use it.

Dave Frederick
Team 1895 Mentor

==============================================


Limitations:
1) The FRCSIM can take a few tries to start.
2) Joystick methods are not working correctly (getX(), getY() and getZ() )
Use: Robot.oi.joystick1.getRawAxis(0)
// Robot.driveTrainSubSystem.ArcadeDrive(Robot.oi.joy stick1.getY(),Robot.oi.joystick1.getX());
Robot.driveTrainSubSystem.ArcadeDrive(Robot.oi.joy stick1.getRawAxis(0), Robot.oi.joystick1.getRawAxis(1));

Notes: Joystick
- Axis 0 - Left(-) and Right(+)
- Axis 1 - forward (-) and Back (+)
- Axis 2 - Rotate forward (-) and Back (+)
Seems like getX(), getY() and getZ() are not working - wrong order
3) The Analog Gyro does not support the “setSensitivity” method. Comment out in RoboMap.
4) Needed to rename a few sensors (one Time).
/home/robot/wpilib/simulation/plugins/
cp libencoder.so libgz_encoder.so
cp libgyro.so libgz_gyro.so
Reply With Quote
 


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 07:56 PM.

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