![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |
Launch files
Messages
Services
Plugins
Recent questions tagged webserver_pkg at Robotics Stack Exchange
![]() |
webserver_pkg package from aws-deepracer-follow-the-leader-sample-project repoctrl_pkg deepracer_interfaces_pkg ftl_launcher ftl_navigation_pkg object_detection_pkg webserver_pkg |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.1 |
License | Apache 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Learn to deploy an object detection model that enables the AWS DeepRacer device to identify and follow an object. |
Checkout URI | https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2022-06-06 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- AWS DeepRacer
Authors
AWS DeepRacer webserver package for the Follow the Leader (FTL) sample project
Overview
The AWS DeepRacer webserver ROS package creates the web_publisher_node
, which is part of the Follow the Leader (FTL) sample project and launches from the ftl_launcher
. For more information, see the Follow the Leader (FTL) sample project.
This node launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the AWS DeepRacer vehicle console. This node acts as an interface between the AWS DeepRacer device console and the backend ROS services. This node was extended to provide more functionalities required for the FTL sample project.
License
The source code is released under Apache 2.0.
Installation
Follow these steps to install the AWS DeepRacer webserver package for the FTL sample project.
Prerequisites
The AWS DeepRacer device comes with all the prerequisite packages and libraries installed to run the FTL sample project. For more information about the preinstalled set of packages and libraries on the AWS DeepRacer device, and about installing the required build systems, see Getting started with AWS DeepRacer OpenSource.
The webserver_pkg
specifically depends on the following ROS 2 packages as build and run dependencies.
-
deepracer_interfaces_pkg*
: This package contains the custom message and service type definitions used across the AWS DeepRacer core application, modified to support the FTL sample project. -
ctrl_pkg
: The AWS DeepRacer control ROS package creates thectrl_node
, which is part of the core AWS DeepRacer application, modified to support the FTL sample project. -
sensor_fusion_pkg
: The AWS DeepRacer sensor fusion ROS package creates thesensor_fusion_node
, which is part of the core AWS DeepRacer application. -
deepracer_systems_pkg
: The AWS DeepRacer systems ROS package creates thesoftware_update_node
,model_loader_node
,network_monitor_node
, andotg_control_node
, which are part of the core AWS DeepRacer application. -
device_info_pkg
: The AWS DeepRacer device info optimizer ROS package creates thedevice_info_node
, which is part of the core AWS DeepRacer application. -
i2c_pkg
: The AWS DeepRacer I2C ROS package creates thebattery_node
, which is part of the core AWS DeepRacer application.
Downloading and building
Open a terminal on the DeepRacer device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the entire FTL sample project on the AWS DeepRacer device:
git clone https://github.com/aws-deepracer/aws-deepracer-follow-the-leader-sample-project.git cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Fetch the unreleased dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ rosws update
-
Resolve the dependencies:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && apt-get update rosdep install -i --from-path . --rosdistro foxy -y
-
Build the
webserver_pkg
,ctrl_pkg
,sensor_fusion_pkg
,deepracer_systems_pkg
,device_info_pkg
,i2c_pkg
, anddeepracer_interfaces_pkg
:cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/ && colcon build --packages-select webserver_pkg ctrl_pkg sensor_fusion_pkg deepracer_systems_pkg device_info_pkg i2c_pkg deepracer_interfaces_pkg
Using the webserver_publisher_node
The webserver_publisher_node
provides basic system-level functionality for the AWS DeepRacer application and the FTL sample project to work. Although the node is built to work with the AWS DeepRacer application and the FTL sample project, it can be run independently for development, testing, and debugging purposes.
Running the node
To launch the built webserver_publisher_node
as the root user on the AWS DeepRacer device, open another terminal on the device and run the following commands as the root user.
-
Switch to the root user before you source the ROS 2 installation:
sudo su
-
Navigate to the FTL workspace:
cd ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/
-
Source the ROS 2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Source the setup script for the installed packages:
source ~/deepracer_ws/aws-deepracer-follow-the-leader-sample-project/deepracer_follow_the_leader_ws/install/setup.bash
-
Launch the
webserver_publisher_node
using the launch script:ros2 launch webserver_pkg webserver_pkg_launch.py
Launch files
The webserver_publisher_node
provides the core functionality to launch the FLASK server and respond to the FLASK API calls. The webserver_pkg_launch.py
included in this package provides an example demonstrating how to launch the nodes independently from the core application.
from launch import LaunchDescription
from launch_ros.actions import Node
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
deepracer_interfaces_pkg | |
ctrl_pkg | |
sensor_fusion_pkg | |
deepracer_systems_pkg | |
device_info_pkg | |
i2c_pkg |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
ftl_launcher | |
deepracer_launcher |