Go to Post This is an engineering competition. Do some. - JVN [more]
Home
Go Back   Chief Delphi > Technical > Control System
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
  #5   Spotlight this post!  
Unread 06-02-2017, 20:53
DaveFrederick's Avatar
DaveFrederick DaveFrederick is offline
Registered User
FRC #1895
 
Join Date: Jan 2009
Location: Manassas,VA
Posts: 38
DaveFrederick is a jewel in the roughDaveFrederick is a jewel in the roughDaveFrederick is a jewel in the rough
Re: FRCsim problem in the environment build

I have been able to work through the issues with the script.
See below.
Dave Frederick
Team 1895 - Manassas VA

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

Issues with the current FRCSIM installation script.
Mainly permission errors.

The current script creates folders under the users home directory (/home/robot) which are owned by root and cannot be accessed by the script (even with sudo). There is a similar error when the models are unzipped under the /tmp folder. The file permissions prevent a move. In addition, the model.zip file expands out to "frcsim-gazebo-models-4" and not "frcsim-gazebo-models" as expected in the script.

Below are the corrective actions.

Dave Frederick

=====================================
## Change 1
## - Change the ownership of all of the files under the user "robot" home directory to robot with group robot
chown -R robot:robot /home/robot/*

## Change 2
## - Make all of the files under the /tmp folder readable and deletable by robot.
chmod -R /tmp/* 777

unzip /tmp/models.zip -d /tmp

cd ~
chown -R robot:robot /home/robot/*
chmod -R /tmp/* 777

mv /tmp/frcsim-gazebo-models-4/models ~/wpilib/simulation/models
mv /tmp/frcsim-gazebo-models-4/worlds ~/wpilib/simulation/worlds

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

install-eclipse-plugins
install-gz_msgs
install-eclipse
install-desktops
install-models
change-ownership

## Change 3
## - Change the ownership of all of the files under the user "robot" home directory to robot with group robot

chown -R robot:robot /home/robot/*

## Change 4
## - Create copies of the plugins so the match the expected values.

cp /home/robot/wpilib/simulation/plugins/libclock.so /home/robot/wpilib/simulation/plugins/libgz_clock.so
cp /home/robot/wpilib/simulation/plugins/libdc_motor.so /home/robot/wpilib/simulation/plugins/libgz_dc_motor.so
cp /home/robot/wpilib/simulation/plugins/libencoder.so /home/robot/wpilib/simulation/plugins/libgz_encoder.so
cp /home/robot/wpilib/simulation/plugins/libgyro.so /home/robot/wpilib/simulation/plugins/libgz_gyro.so
cp /home/robot/wpilib/simulation/plugins/liblimit_switch.so /home/robot/wpilib/simulation/plugins/libgz_limit_switch.so
cp /home/robot/wpilib/simulation/plugins/libpneumatic_piston.so /home/robot/wpilib/simulation/plugins/libgz_pneumatic_piston.so
cp /home/robot/wpilib/simulation/plugins/libpotentiometer.so /home/robot/wpilib/simulation/plugins/libgz_potentiometer.so
cp /home/robot/wpilib/simulation/plugins/librangefinder.so /home/robot/wpilib/simulation/plugins/libgz_rangefinder.so
cp /home/robot/wpilib/simulation/plugins/libservo.so /home/robot/wpilib/simulation/plugins/libgz_servo.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 12:36.

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