-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the iCub user enviroment documentation #325
Conversation
…vironment variable loading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @GiulioRomualdi!
For consistency, would you mind updating also the following snippet
documentation/docs/icub_operating_systems/pc104/the-icub-live-details.md
Lines 302 to 351 in 5d91996
## User environment | |
The SKEL `/etc/skel` files are used to generate the desired user environment for the icub user modifying the following files | |
### .bashrc | |
``` | |
#Load the iCub custom bashrc | |
ICUBRC_FILE="${HOME}/.bashrc_iCub" | |
if [ -f "$ICUBRC_FILE" ]; then | |
source $ICUBRC_FILE | |
fi | |
.bashrc_iCub | |
# .bashrc_iCub | |
# setup the iCub enviroment | |
if [ "$ICUBRC_FILE_LOADED" ]; then | |
return | |
fi | |
export ICUBRC_FILE_LOADED="true" | |
if [ "$PS1" ]; then | |
echo "Setting up yarp and iCub env vars" | |
fi | |
# YARP and iCub enviroment variables | |
export ROBOT_CODE=/usr/local/src/robot | |
export ICUBcontrib_DIR=$ROBOT_CODE/iCubContrib | |
export YARP_ROOT=$ROBOT_CODE/yarp | |
export YARP_DIR=$YARP_ROOT/build | |
export ICUB_ROOT=${ROBOT_CODE}/icub-main | |
export ICUB_DIR=${ICUB_ROOT}/build | |
export icub_firmware_shared_DIR=${ROBOT_CODE}/icub-firmware-shared/build | |
export YARP_DATA_DIRS=${YARP_DIR}/share/yarp:${ICUB_DIR}/share/iCub:${ICUBcontrib_DIR}/share/ICUBcontrib | |
export FIRMWARE_BIN=${ROBOT_CODE}/icub-firmware/build | |
# Set the name of your robot here. | |
# Please change also the root user password | |
export YARP_ROBOT_NAME= | |
if [ "$YARP_ROBOT_NAME" = "" ] && [ -f "${ROBOT_CODE}/yarp_robot_name.txt" ] | |
then | |
export YARP_ROBOT_NAME=$( head --lines=1 ${ROBOT_CODE}/yarp_robot_name.txt ) | |
fi | |
# Set-up optimizations | |
export CMAKE_BUILD_TYPE=Release | |
export PATH=$PATH:$ICUB_DIR/bin:$YARP_DIR/bin | |
# DebugStream customization | |
export YARP_VERBOSE_OUTPUT=0 | |
export YARP_COLORED_OUTPUT=1 | |
export YARP_TRACE_ENABLE=0 | |
export YARP_FORWARD_LOG_ENABLE=0 | |
# To enable tab completion on yarp port names | |
if [ -f $YARP_ROOT/scripts/yarp_completion ]; then | |
source $YARP_ROOT/scripts/yarp_completion | |
fi | |
``` |
as reported in #324 (comment)?
Hi @pattacini I updated the file in 3323f66 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super! Thanks.
if [[ $- == *i* ]] || [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then | ||
#Load the ergoCub custom bashrc | ||
if [ "$HOME" != "" ]; then | ||
ICUBRC_FILE="${HOME}/.bashrc_ergoCub" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was changed from .bashrc_iCub
to .bashrc_erogCub
, probably you missed it @pattacini @GiulioRomualdi.
btw is there an equivalent documentation for ergoCub right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out! I'll revert these changes.
btw is there an equivalent documentation for ergoCub right?
We have the following doc, which doesn't go into the same level of details:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed via e8b2f55.
This closes #324