Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
4 changes: 4 additions & 0 deletions firmware/ros2_ws/src/openneato_driver/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[develop]
script_dir=$base/lib/openneato_driver
[install]
install_scripts=$base/lib/openneato_driver
Empty file.
4 changes: 4 additions & 0 deletions firmware/ros2_ws/src/openneato_nav/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[develop]
script_dir=$base/lib/openneato_nav
[install]
install_scripts=$base/lib/openneato_nav
6 changes: 4 additions & 2 deletions firmware/ros2_ws/src/openneato_nav/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
# Installa tutti i file launch
(os.path.join('share', package_name, 'launch'), glob('launch/*.launch.py')),
(os.path.join('share', package_name, 'launch'), glob('launch/*launch.py')),
# Installa tutti i file di configurazione (params)
(os.path.join('share', package_name, 'params'), glob('params/*.yaml')),
# Install the urdf descriptor of Neato
(os.path.join('share', package_name, 'urdf'), glob('urdf/*')),
],
install_requires=['setuptools'],
zip_safe=True,
Expand All @@ -27,4 +29,4 @@
entry_points={
'console_scripts': [],
},
)
)
10 changes: 10 additions & 0 deletions firmware/ros2_ws/src/openneato_nav/urdf/neato.urdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<robot name="ryans_neato">
<link name="base_link">
<visual>
<geometry>
<cylinder radius="0.18" length="0.2"/>
</geometry>
<material name="blue"/>
</visual>
</link>
</robot>
10 changes: 9 additions & 1 deletion installer/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ do_install() {
whiptail --title "Building ROS 2 Workspace" --infobox "Compiling OpenNeato firmware (this may take a while)..." 8 78
cd "$INSTALL_DIR/firmware/ros2_ws"

# Source Virtual Python environment just created above
if [ -f "$INSTALL_DIR/venv/bin/activate" ]; then
source $INSTALL_DIR/venv/bin/activate
else
echo "Error: Could not source the python virtual environment $INSTALL_DIR/venv/bin/activate"
exit 1
fi

# Source ROS 2 Jazzy
if [ -f "/opt/ros/jazzy/setup.bash" ]; then
source /opt/ros/jazzy/setup.bash
Expand Down Expand Up @@ -139,4 +147,4 @@ do_uninstall() {
case $CHOICE in
"1") do_install ;;
"2") do_uninstall ;;
esac
esac