-
Notifications
You must be signed in to change notification settings - Fork 22
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
Select install directory to build #18
Open
fmrico
wants to merge
18
commits into
esteve:master
Choose a base branch
from
fmrico:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3e86248
Select install directory to build
fmrico 188cffc
BASE_ROOT changed to PEPPER_ROS_BASE_ROOT
fmrico 97903a1
Typo in readme.md
fmrico 6303afa
Select install directory to build
fmrico 68b44d2
BASE_ROOT changed to PEPPER_ROS_BASE_ROOT
fmrico 636ecc2
Typo in readme.md
fmrico 780ed2a
Select install directory to build
fmrico 1efd4af
BASE_ROOT changed to PEPPER_ROS_BASE_ROOT
fmrico 895cb85
Typo in readme.md
fmrico f151aca
Select install directory to build
fmrico 07d4474
BASE_ROOT changed to PEPPER_ROS_BASE_ROOT
fmrico be084b5
Typo in readme.md
fmrico 87a33a1
Env var to BASE_ROOT
fmrico 7750c4d
Fixed typo in install
fmrico 2d0884e
Fixed var in install
fmrico 0c13bf6
Fixed var init in build_ros1
fmrico 98e3c16
Fixed var init in install
fmrico b36c99d
Fixed var init in prepare_reqs_ros1
fmrico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,12 @@ export AL_DIR=/home/NaoQi <-- Or wherever you installed NaoQi | |
export ALDE_CTC_CROSS=$AL_DIR/ctc-linux64-atom-2.5.2.74 | ||
``` | ||
|
||
If you want to set the install directory (instead of the project root directory), set the `PEPPER_ROS_BASE_ROOT` environment variable: | ||
|
||
``` | ||
export PEPPER_ROS_BASE_ROOT=/home/mihome/pepper_root/ <-- Or wherever you want | ||
``` | ||
|
||
## Prepare cross-compiling environment | ||
|
||
We're going to use Docker to set up a container that will compile all the tools for cross-compiling ROS and all of its dependencies. Go to https://https://www.docker.com/community-edition to download it and install it for your Linux distribution. | ||
|
@@ -57,17 +63,17 @@ Finally! Type the following, go grab a coffee and after a while you'll have an e | |
|
||
### Copy ROS and its dependencies to the robot | ||
|
||
By now you should have the following inside .ros-root in the current directory: | ||
By now you should have the following inside System in the current directory: | ||
|
||
- Python 2.7 built for Pepper (.ros-root/Python-2.7.13) | ||
- All the dependencies required by ROS (.ros-root/ros1_dependencies) | ||
- A ROS workspace with ROS Kinetic built for Pepper (.ros-root/ros1_inst) | ||
- A helper script that will set up the ROS workspace in the robot (.ros-root/setup_ros1_pepper.bash) | ||
- Python 2.7 built for Pepper (System/Python-2.7.13) | ||
- All the dependencies required by ROS (System/ros1_dependencies) | ||
- A ROS workspace with ROS Kinetic built for Pepper (System/ros1_inst) | ||
- A helper script that will set up the ROS workspace in the robot (System/setup_ros1_pepper.bash) | ||
|
||
We're going to copy these to the robot, assuming that your robot is connected to your network, type the following: | ||
|
||
``` | ||
$ scp -r .ros-root nao@IP_ADDRESS_OF_YOUR_ROBOT:.ros-root | ||
$ sync -avz System User nao@pepper.local:~/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
``` | ||
|
||
### Run ROS 1 from inside Pepper | ||
|
@@ -83,7 +89,7 @@ $ ssh nao@IP_ADDRESS_OF_YOUR_ROBOT | |
*Source (not run) the setup script* | ||
|
||
``` | ||
$ source .ros-root/setup_ros1_pepper.bash | ||
$ source System/setup_ros1_pepper.bash | ||
``` | ||
|
||
*Start naoqi_driver, note that NETWORK\_INTERFACE may be either wlan0 or eth0, pick the appropriate interface if your robot is connected via wifi or ethernet* | ||
|
@@ -117,15 +123,15 @@ Let's now build ROS 2 for Pepper: | |
|
||
### Copy ROS 2 and its dependencies to the robot | ||
|
||
Besides the ROS 1 binaries and its dependencies, we'll now a few more directories inside .ros-root in our current directory: | ||
Besides the ROS 1 binaries and its dependencies, we'll now a few more directories inside System in our current directory: | ||
|
||
- Python 3.6 built for Pepper (.ros-root/Python-3.6.1) | ||
- A ROS 2 workspace built for Pepper (.ros-root/ros2_inst) | ||
- Python 3.6 built for Pepper (System/Python-3.6.1) | ||
- A ROS 2 workspace built for Pepper (System/ros2_inst) | ||
|
||
We're going to copy these to the robot, assuming that your robot is connected to your network, type the following: | ||
|
||
``` | ||
$ scp -r .ros-root nao@IP_ADDRESS_OF_YOUR_ROBOT:.ros-root | ||
$ sync -avz System User nao@pepper.local:~/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
``` | ||
|
||
### Run ROS 2 from inside Pepper | ||
|
@@ -141,7 +147,7 @@ $ ssh nao@IP_ADDRESS_OF_YOUR_ROBOT | |
*Source (not run) the setup script* | ||
|
||
``` | ||
$ source .ros-root/setup_ros2_pepper.bash | ||
$ source System/setup_ros2_pepper.bash | ||
``` | ||
|
||
ROS 2 does not have a something like roslaunch yet, so you'll have to run naoqi_driver directly: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Replace
/home/mihome
with$HOME