Skip to content

Commit

Permalink
Merge branch 'docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezenders committed Dec 6, 2023
2 parents 19ad712 + cf1beb8 commit 4038f9a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ros-tooling/setup-ros@v0.6
- uses: ros-tooling/setup-ros@0.7.1
with:
required-ros-distributions: humble
- uses: ros-tooling/action-ros-ci@v0.3
- uses: ros-tooling/action-ros-ci@0.3.5
id: action_ros_ci_step
with:
package-name: suave suave_msgs suave_missions suave_metacontrol system_modes mavros mavros_wrapper mros2_reasoner mros2_msgs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build pkg
uses: ros-tooling/action-ros-ci@v0.2
uses: ros-tooling/action-ros-ci@0.3.5
with:
package-name: suave
target-ros2-distro: humble
Expand Down
9 changes: 8 additions & 1 deletion docker/dockerfile-suave
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN add-apt-repository ppa:kisak/kisak-mesa \
software-properties-common \
mesa-utils \
bash-completion \
python3-pip \
&& apt full-upgrade -y \
&& rm -rf /var/lib/apt/list/

Expand All @@ -45,17 +46,21 @@ RUN apt update && apt install -y \
gz-garden \
&& rm -rf /var/lib/apt/lists/

RUN pip uninstall empy && pip install empy==3.3.4 && pip install -U colcon-common-extensions

### Install ROS2
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null

RUN apt update && apt install -y \
ros-humble-ros-base \
python3-colcon-common-extensions \
python3-empy=3.3.4-2 \
# python3-colcon-common-extensions \
python3-rosdep \
python3-vcstool \
&& rm -rf /var/lib/apt/lists/


###Add the USER env var
RUN echo 'kasm-user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
ENV HOME /home/kasm-user
Expand Down Expand Up @@ -121,6 +126,8 @@ RUN ["/bin/bash", "-c", "source /opt/ros/humble/setup.bash \

RUN ["/bin/bash", "-c", "sudo ./src/mavros/mavros/scripts/install_geographiclib_datasets.sh"]

RUN pip uninstall empy -y && pip install empy==3.3.4

# Build suave
RUN ["/bin/bash", "-c", "source /opt/ros/humble/setup.bash \
&& colcon build --symlink-install \
Expand Down
1 change: 0 additions & 1 deletion suave/suave/bluerov_gazebo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from geometry_msgs.msg import Pose
from std_msgs.msg import Bool
from mavros_wrapper.ardusub_wrapper import BlueROVArduSubWrapper


Expand Down
5 changes: 0 additions & 5 deletions suave/suave/follow_pipeline_lc.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#!/usr/bin/env python
from typing import Optional

import math
import rclpy
import threading

from rclpy.lifecycle import Node
from rclpy.lifecycle import Publisher
from rclpy.lifecycle import State
from rclpy.lifecycle import TransitionCallbackReturn
from rclpy.timer import Timer

from suave_msgs.srv import GetPath
from suave.bluerov_gazebo import BlueROVGazebo
Expand Down Expand Up @@ -88,7 +84,6 @@ def follow_pipeline(self):
if self.abort_follow is True:
return
timer.sleep()

last_point = None
self.distance_inspected = 0
for gz_pose in pipe_path.result().path.poses:
Expand Down
2 changes: 0 additions & 2 deletions suave/suave/spiral_search_lc.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ def publish(self):
self.spiral_y,
resolution=0.1,
spiral_width=spiral_width)
self.get_logger().info(
'setpoint_postion_local value {0}, {1}'.format(x, y))

self.ardusub.altitude = self.spiral_altitude + self.z_delta
self.goal_setpoint = self.ardusub.setpoint_position_local(
Expand Down
2 changes: 0 additions & 2 deletions suave_metacontrol/launch/suave_metacontrol.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
from ament_index_python.packages import get_package_share_directory

from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration

from launch_ros.actions import Node

Expand Down

0 comments on commit 4038f9a

Please sign in to comment.