Skip to content

Commit

Permalink
Merge pull request #24 from sonia-auv/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
supertoto29 authored Jun 27, 2022
2 parents c13cc99 + c4e2b16 commit bd70499
Show file tree
Hide file tree
Showing 19 changed files with 83 additions and 195 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--env", "AUV=AUV8",
"--rm",
"--privileged",
"--network",
Expand Down
16 changes: 7 additions & 9 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
blank_issues_enabled: false
# TODO: enter appropriate contacts
"""

contact_links:
- name: GitHub Community Forum
url: https://github.community/
about: Please ask and answer questions here.
- name: GitHub Security Bug Bounty
url: https://bounty.github.com/
about: Please report security vulnerabilities here.
"""
- name: SONIA AUV official documentation
url: https://wiki.sonia.etsmtl.ca/
about: Visit our documentation for more information.
- name: SONIA AUV website
url: https://sonia.etsmtl.ca/
about: Visit our website and feel free to ask any questions.
32 changes: 1 addition & 31 deletions .github/workflows/docker-image-perception-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,34 +80,4 @@ jobs:
- name: Push Image to Github Packages Registry
run: |
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: success()
steps:
- name: Notify Slack Success
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: SUCCESS
color: good

notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: failure()
steps:
- name: Notify Slack Fail
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: FAILED
color: danger
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
32 changes: 1 addition & 31 deletions .github/workflows/docker-image-perception-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,4 @@ jobs:
- name: Push Image to Github Packages Registry
run: |
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: success()
steps:
- name: Notify Slack Success
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: SUCCESS
color: good

notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: failure()
steps:
- name: Notify Slack Fail
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: FAILED
color: danger
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
32 changes: 1 addition & 31 deletions .github/workflows/docker-image-perception-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,4 @@ jobs:
- name: Push Image to Github Packages Registry
run: |
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: success()
steps:
- name: Notify Slack Success
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: SUCCESS
color: good

notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: failure()
steps:
- name: Notify Slack Fail
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: FAILED
color: danger
docker push --all-tags ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
32 changes: 1 addition & 31 deletions .github/workflows/docker-image-perception-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,34 +113,4 @@ jobs:
body: |
A new release for this package has been created
draft: false
prerelease: false

notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64, create-release]
if: success()
steps:
- name: Notify Slack Success
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: SUCCESS
color: good

notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-perception-x86-64, build-ros-perception-arm64, create-release]
if: failure()
steps:
- name: Notify Slack Fail
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: github-ci-notifications
status: FAILED
color: danger
prerelease: false
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#===============================================================================
# G L O B A L P R O J E C T C O N F I G U R A T I O N

cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.0.2)
project(provider_underwater_com)

if (NOT CMAKE_BUILD_TYPE)
Expand Down
7 changes: 7 additions & 0 deletions config/AUV7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#********** Driver Parameters ************

/provider_underwater_com/connection/tty_port: "/dev/MODEM"

/provider_underwater_com/settings/role : "b"

/provider_underwater_com/settings/channel : "6"
7 changes: 7 additions & 0 deletions config/AUV8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#********** Driver Parameters ************

/provider_underwater_com/connection/tty_port: "/dev/MODEM"

/provider_underwater_com/settings/role : "a"

/provider_underwater_com/settings/channel : "6"
2 changes: 1 addition & 1 deletion config/default.yaml → config/LOCAL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

/provider_underwater_com/settings/role : "a"

/provider_underwater_com/settings/channel : "4"
/provider_underwater_com/settings/channel : "6"
3 changes: 3 additions & 0 deletions config/rosconsole.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Set the default ros output to warning and higher
log4j.logger.ros=WARN
log4j.logger.ros.provider_underwater_com=INFO
4 changes: 3 additions & 1 deletion launch/provider_underwater_com.launch
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<launch>

<env name="ROSCONSOLE_CONFIG_FILE" value="$(find provider_underwater_com)/config/rosconsole.config"/>

<!-- load the provider -->
<node name="provider_underwater_com" pkg="provider_underwater_com" type="provider_underwater_com_node" output="screen"/>

<rosparam command="load" file="$(find provider_underwater_com)/config/default.yaml"/>
<rosparam command="load" file="$(find provider_underwater_com)/config/$(env AUV).yaml"/>

</launch>
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="2">
<name>provider_underwater_com</name>
<version>0.6.1</version>
<version>1.0.1</version>
<description>The provider_underwater_com package</description>

<author>Francis Alonzo</author>
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ namespace provider_underwater_com

template <typename TType>
void FindParameter(const std::string &paramName, TType &attribute);


};
};
}

#endif //INTERFACE_CONFIGURATION_H
4 changes: 2 additions & 2 deletions src/drivers/serial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <ros/ros.h>
#include <sys/ioctl.h>

Serial::Serial(std::string port, int flags)
Serial::Serial(std::string port)
{
fd = open(port.c_str(), flags);
fd = open(port.c_str(), O_RDWR | O_NOCTTY);
if(fd == -1)
{
ROS_ERROR("unable to connect to %s", port.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

class Serial{
public:
Serial(std::string port, int flags);
Serial(std::string port);
~Serial();

std::string receive(size_t count);
Expand Down
1 change: 0 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ int main(int argc, char **argv)
ros::NodeHandlePtr nh(new ros::NodeHandle("~"));
provider_underwater_com::ProviderUnderwaterComNode provider_underwater_com_node{nh};
provider_underwater_com_node.Spin();

return 0;
}
Loading

0 comments on commit bd70499

Please sign in to comment.