Skip to content

Commit

Permalink
Merge pull request #246 from waynegramlich/se
Browse files Browse the repository at this point in the history
Minor updates in software/ dir.
  • Loading branch information
waynegramlich authored May 15, 2021
2 parents 1399a4e + 4d0d717 commit dd9a343
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
8 changes: 7 additions & 1 deletion bin/uros_nucleo_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,21 @@ source install/local_setup.bash
echo "================ Create firmware step ================"
ros2 run micro_ros_setup create_firmware_ws.sh freertos nucleo_f767zi

# HR2 clone goes here. .../firmware/freertos_apps/.git

echo "================ Configure firmware step ================"
ros2 run micro_ros_setup configure_firmware.sh ping_pong --transport serial

echo "================ Make sure additiona tools are installed ================"
echo "================ Make sure additional tools are installed ================"
sudo apt install -y python3-argcomplete
sudo apt install -y python3-colcon-common-extensions
sudo apt install -y python3-vcstool
sudo apt install -y python3-rosdep
sudo apt install -y python3-rosdep-modules

echo "================ Building the Firmware ================"
sudo rosdep init
rosdep update
ros2 run micro_ros_setup build_firmware.sh
source /opt/ros/foxy/setup.bash
source install/local_setup.bash
Expand Down
19 changes: 17 additions & 2 deletions software/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
DEALINGS IN THE SOFTWARE.
-->

# HR2 Robot Software
# HR2 Robot Software

<!-- ==================================== 100 Characters ======================================= -->

Expand Down Expand Up @@ -1570,13 +1570,28 @@ The
builds the micro-ROS agent to run on either your development computer or on your robot computer.
It also build the micro-ROS firmware which is downloadable to the Robot Microcontroller.
As with the first tutorial,
there is anither script in the `bin` directory called `uros_nucle_install.sh`
there is anither script in the `bin` directory called `uros_nucleo_install.sh`
that will install the micro-ros code and build both the agent and the firmware.
The first time you run this script do it on your Development computer.
Eventually, you will rerun the same script on your Robot computer (i.e. the Raspberry Pi 4.)

<!--
Errors when running `.../bin/uros_nueclo_install /tmp/foo jnugen` on a Ras Pi 4,:
* `/tmp/foo/install/micro_ros_setup/config/freertos/list_apps.sh: line 25: pushd: /tmp/foo/firmware/freertos_apps/apps: No such file or directory`
* `/tmp/foo/install/micro_ros_setup/lib/micro_ros_setup/build_firmware.sh: line 65: /tmp/foo/firmware/dev_ws/install/setup.bash: No such file or directory`
* `/tmp/foo/install/micro_ros_setup/lib/micro_ros_setup/build_firmware.sh: line 65: /tmp/foo/firmware/dev_ws/install/setup.bash: No such file or directory`
* `=== ./uros/rclc (git) ===`
`Could not checkout ref 'master': fatal: invalid reference: master`
-->

<!--
###################################################################################################
This is all old text that will eventually be deleted.
Expand Down

0 comments on commit dd9a343

Please sign in to comment.