Skip to content

Commit

Permalink
Merge pull request #324 from vortexntnu/enhancement/python3
Browse files Browse the repository at this point in the history
Enhancement/python3
  • Loading branch information
chrstrom authored May 12, 2022
2 parents 0870bfa + 5697f72 commit 938d89a
Show file tree
Hide file tree
Showing 65 changed files with 561 additions and 262 deletions.
2 changes: 1 addition & 1 deletion auv_setup/config/robots/beluga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ temperature:
i2c:
pca9685:
address: 0x40
bus: 8
bus: 1
psm:
address_voltage: 0x6a
address_current: 0x69
Expand Down
9 changes: 6 additions & 3 deletions auv_setup/launch/beluga.launch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<!-- INPUT ARGS -->
<arg name="type" default="real"/> <!-- real | simulator -->
<arg name="localization" default="ekf"/> <!-- ekf | eskf-->

<arg name="computer" default="xavier" /> <!-- xavier | rpi -->
<arg name="dvl_ip" default=""/>
<!-- PARAMETERS -->
<rosparam command="load" file="$(find auv_setup)/config/environments/trondheim_freshwater.yaml"/>
<rosparam command="load" file="$(find auv_setup)/config/robots/beluga.yaml"/>
Expand All @@ -20,14 +21,16 @@
<include file="$(find internal_status)/launch/internal_status.launch" pass_all_args="true" />

<!-- For launching the manipulator (gripper, torpedo, lights) nodes -->
<include file="$(find manipulators_launch)/launch/manipulators.launch" pass_all_args="true"/>
<!-- <include file="$(find manipulators_launch)/launch/manipulators.launch" pass_all_args="true"/> -->

<!-- IMU -->
<node pkg="driver_stim300" type="stim300_driver_node" name="driver_stim300"/>

<!-- DVL -->
<!-- <node pkg="dvl1000_ros" type="publisherDVL1000.py" name="publisherDVL1000" /> -->
<!-- <node pkg="uns_driver" type="uns_ros_driver.py" name="uns_driver" output="screen"/> -->
<node pkg="uns_driver" type="uns_ros_driver.py" name="uns_driver" output="screen">
<param name="uns_ip" value="$(arg dvl_ip)"/>
</node>

<!-- Driver for communication between Xavier and thrusters over PCA9685 board -->
<node pkg="thruster_interface" type="thruster_interface_node.py" name="thruster_interface" output="screen" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from sensor_msgs.msg import Joy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from sensor_msgs.msg import Joy
Expand Down
4 changes: 2 additions & 2 deletions manipulators/torpedo/scripts/torpedo_launch_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# coding: UTF-8

import rospy
Expand Down Expand Up @@ -47,4 +47,4 @@ def execute(self, req):
if __name__ == "__main__":
node = TorpedoLaunch()
while not rospy.is_shutdown():
rospy.spin()
rospy.spin()
2 changes: 1 addition & 1 deletion mission/anomaly_detection/cfg/BatterySimulator.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

PACKAGE = "anomaly_detection"

Expand Down
2 changes: 1 addition & 1 deletion mission/anomaly_detection/scripts/battery_simulator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

# Written by Kristoffer Rakstad Solberg, Student
# Copyright (c) 2020 Manta AUV, Vortex NTNU.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from smach import Sequence
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/scripts/fsm_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# coding: UTF-8

from enum import IntEnum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/scripts/goal_pose_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from geometry_msgs.msg import Point
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from std_msgs.msg import String
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/scripts/pooltest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# coding: UTF-8

from math import pi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from smach import StateMachine
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/scripts/robosub_fsm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from smach import StateMachine
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/scripts/simtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# coding: UTF-8

import rospy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from smach import StateMachine
Expand Down
2 changes: 1 addition & 1 deletion mission/finite_state_machine/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

from enum import IntEnum

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

from math import pi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import math
from enum import IntEnum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

import rospy
from smach import State
Expand Down
Loading

0 comments on commit 938d89a

Please sign in to comment.