|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: FRCSIM Help
Alright I was able to get it working. I didn't realize that the new version requires me to manually load the world file using
frcsim worldfile.world Once I did that and ran the GearsBot sample program I was able to get it working, though I had to fix up the joystick controls -the sample code didn't work with my Xbox controller. One weird thing I noticed was that after I played around with the simulation for a couple minutes and tried out the Smart Dashboard simulator the robot seemed to drop down below the floor (see attachment). I can only see the top-most part of the robot, the rest is below the ground level? Not sure if there is a defect in the model itself or something? -Gary |
|
#2
|
|||
|
|||
|
Re: FRCSIM Help
After several minutes of inspection we saw that it's working! although it is very very slow (the gearbot claw takes 5 minutes to go up)
We are running it on a 64 bit computer with a intel core i7 processor and 8 Gb of RAM. Gazebo seems to be running just fine (we can zoom in and out real fast) is there any way we can make it run at normal speeds? |
|
#3
|
|||
|
|||
|
Re: FRCSIM Help
Quote:
Code:
gz topic -z /gazebo/frc/time |
|
#4
|
|||
|
|||
|
Re: FRCSIM Help
Quote:
1) find all instances of usePIDOutpout() 2) find where you call the set() method on your motor 3) wrap it in an if statement that checks if the output is NaN EX: Code:
public void usePIDOutput(){
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|