-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated code from the summer #194
Open
Andeshog
wants to merge
69
commits into
development
Choose a base branch
from
test/29.04
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 63 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
0f9feb3
Added LQR and PID DP
Mokaz cff5d3c
Fixed topic names and initial tuning
Andeshog 4a1110f
Made LQR and PID ready for testing
Andeshog 539d025
Added QoS profile to seapath/odom subscription
Andeshog f9cc001
Added QoS profile
Andeshog e611e5c
Added yaw publisher
Andeshog 7050c3b
.
Andeshog 1cd14f8
Added way to reinitialize waypoints through service call
Andeshog 09110fa
Enabled controller tuning of LQR and PID during runtime.
Andeshog 19a7ff0
sitaw merge
jorgenfj 18024e5
Committing clang-format changes
c204914
Working system after physical testing
Andeshog 4f63bb1
Wall update
jorgenfj 447125b
Committing clang-format changes
08afdba
qos fix
jorgenfj cfc4853
Committing clang-format changes
0131dcb
Add sim launch for freya
chrstrom 3e3b7de
docking task
jorgenfj 64b5b88
Committing clang-format changes
168772e
Add controller to sim launch
chrstrom d9c848c
dynamic buoy prediction
jorgenfj f406191
Committing clang-format changes
07cfa31
njord task structure
jorgenfj fa84fd0
Committing clang-format changes
5ff9ec4
auction algorithm fix
jorgenfj f5248f4
Committing clang-format changes
364d056
utility functions for task base
jorgenfj e7a71da
Committing clang-format changes
a09d4e5
navigation task test ready
jorgenfj d05125e
Committing clang-format changes
4de17fa
Concurrency setup change
jorgenfj 1d5d522
Committing clang-format changes
06dec3e
bugfix in navigation, finished maneuvering
jorgenfj 8407037
Committing clang-format changes
a6a61ac
Map manager sim setup
jorgenfj e974929
Committing clang-format changes
638f998
Controller wont publish forces if the killswitch is on or system not …
Andeshog 591919a
Added comminication with joystick and ability to set desired yaw angl…
Andeshog 7dd07c7
Removed spam, initialized y-button
Andeshog bced81a
Raised max and min thrust
Andeshog cfa6963
Minor adjustments to heading tuning
Andeshog 783168d
improved logging and behaviour for stationkeeping
Andeshog 6f6d8fc
Added ability to set stationkeeping pose by pressing Y
Andeshog b461023
visualization fix
jorgenfj b9f431c
Committing clang-format changes
b98b385
Set mu to zero such that the vessel can keep constant velocity more e…
Andeshog adf847a
Added new list to waypoint node collection. 40 meters straight east
Andeshog 628fa19
Merge branch 'test/29.04' of https://github.com/vortexntnu/vortex-asv…
Andeshog 70b32a1
colav task
jorgenfj 5fb44bc
Committing clang-format changes
0310cd8
thrust force and mapping
vortexuser 266ae94
fill landmark polygons
jorgenfj 47ba8ab
Committing clang-format changes
d59023f
dock edge localization test
jorgenfj 8a6aab5
Committing clang-format changes
fffa973
Update docstrings
Andeshog b423d55
Cleanup
Andeshog 535df5b
Remove unused packages and files
Andeshog 4a3e8b9
Remove unused files from install
Andeshog 3d0e8b9
Updated waypoint service call example
Andeshog 57ff9e6
Boolean value for when the built in heading reference for the path sh…
Andeshog cd33ea5
Removed commented code
Andeshog bcef888
Removed unncecessary if else
Andeshog 883f88d
moved map-odom-tf to map_manager and added optional grid usage in lan…
jorgenfj b65b35a
Committing clang-format changes
04c0bcc
Add coriolis
Andeshog 4229552
Remove old force mapping
Andeshog f8ee295
Merge branch 'test/29.04' of https://github.com/vortexntnu/vortex-asv…
Andeshog b7f6fab
build fix
jorgenfj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
63.437946025438066 10.507175268806458 | ||
63.43787563495969 10.507121157686353 | ||
63.4378360402396 10.50719002638467 | ||
63.43763366637102 10.50697358190425 | ||
63.43760726967404 10.507101480915406 | ||
63.43713432473124 10.506752218231092 | ||
63.437239913116464 10.505876601923934 | ||
63.438056010214204 10.506461985859616 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
63.41489120183045 10.39705552070149 | ||
63.41497265487507 10.39783732516908 | ||
63.41538547016246 10.397651181248118 | ||
63.415431749532054 10.398250978326427 | ||
63.415048554100395 10.398449531842004 | ||
63.41512075073269 10.399185834462275 | ||
63.41495229164123 10.399305793877936 | ||
63.41486158248972 10.398540535536645 | ||
63.41453021396673 10.398747362115373 | ||
63.4145246602717 10.398631539231284 | ||
63.414280296625655 10.39877218130482 | ||
63.41424142039905 10.398197203415958 | ||
63.4144598670836 10.398110336252891 | ||
63.41444505719146 10.397990376837232 | ||
63.41478938520484 10.397841461700548 | ||
63.41472089017681 10.397167207053899 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-33.722464875303054 150.6733186790048 | ||
-33.720864277234156 150.673353826611 | ||
-33.72115033638088 150.67502276015122 | ||
-33.72271743627459 150.67461276680072 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-33.722576743831986 150.67377683501326 | ||
-33.72213785615945 150.6737273159938 | ||
-33.722119332734295 150.6744244880215 | ||
-33.72265441348879 150.6743192836287 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
landmark_server_node: | ||
ros__parameters: | ||
fixed_frame: map | ||
target_frame: base_link | ||
wall_width: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
map_manager_node: | ||
ros__parameters: | ||
use_predef_landmask: true | ||
landmask_file: "src/vortex-asv/asv_setup/config/sitaw/land_polygon_sim_maneuvering.yaml" | ||
# landmask_file: "src/vortex-asv/asv_setup/config/sitaw/land_polygon_office.yaml" | ||
map_resolution: 0.2 | ||
map_width: 1000 | ||
map_height: 1000 | ||
frame_id: "map" | ||
# Map origin for office rosbag | ||
# map_origin_lat: 63.414660884931976 | ||
# map_origin_lon: 10.398554661537544 | ||
# use_predef_map_origin: true | ||
# Map origin for sim_navigation | ||
# map_origin_lat: -33.72242824301795 | ||
# map_origin_lon: 150.6740063854522 | ||
# use_predef_map_origin: true | ||
# Map origin for sim_maneuvering | ||
# map_origin_lat: -33.72213985487166 | ||
# map_origin_lon: 150.67413507552098 | ||
# use_predef_map_origin: true | ||
#colav | ||
map_origin_lat: -33.72213988382845 | ||
map_origin_lon: 150.67413500672993 | ||
use_predef_map_origin: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
seapath_ros_driver_node: | ||
ros__parameters: | ||
UDP_IP: "10.0.1.10" # Source IP of the host sender | ||
UDP_PORT: 31421 # Port at which to receive UDP semgents | ||
use_predef_map_origin: false | ||
map_origin_lat: 0.0 | ||
map_origin_lon: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
from os import path | ||
from launch_ros.actions import Node | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription, DeclareLaunchArgument | ||
from launch.actions import SetEnvironmentVariable, IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
from launch.substitutions import LaunchConfiguration | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
def generate_launch_description(): | ||
# Set environment variable | ||
set_env_var = SetEnvironmentVariable( | ||
name='ROSCONSOLE_FORMAT', | ||
value='[${severity}] [${time}] [${node}]: ${message}' | ||
) | ||
|
||
|
||
# Thruster Allocator launch | ||
thruster_allocator_launch = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
path.join(get_package_share_directory('thruster_allocator'), 'launch', 'thruster_allocator.launch.py') | ||
) | ||
) | ||
|
||
# Joystick node | ||
joy_node = Node( | ||
package='joy', | ||
executable='joy_node', | ||
name='joystick_driver', | ||
output='screen', | ||
parameters=[ | ||
{'deadzone': 0.15}, | ||
{'autorepeat_rate': 100.0}, | ||
], | ||
remappings=[ | ||
('/joy', '/joystick/joy'), | ||
], | ||
) | ||
|
||
# Joystick interface launch | ||
joystick_interface_launch = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
path.join(get_package_share_directory('joystick_interface'), 'launch', 'joystick_interface.launch.py') | ||
) | ||
) | ||
|
||
# Vortex Sim Interface launch | ||
vortex_sim_interface_launch = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
path.join(get_package_share_directory('vortex_sim_interface'), 'launch', 'vortex_sim_interface.launch.py') | ||
) | ||
) | ||
|
||
# Controller | ||
controller_launch = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
path.join(get_package_share_directory('asv_setup'), 'launch', 'hybridpath.launch.py') | ||
) | ||
) | ||
|
||
# Return launch description | ||
return LaunchDescription([ | ||
set_env_var, | ||
thruster_allocator_launch, | ||
joy_node, | ||
joystick_interface_launch, | ||
controller_launch, | ||
vortex_sim_interface_launch, | ||
]) |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the ASV is to be worked on further, please split it into a better repo structure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import os | ||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription, DeclareLaunchArgument | ||
from launch_ros.actions import Node | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
from launch.conditions import IfCondition | ||
from launch.substitutions import LaunchConfiguration | ||
|
||
|
||
def generate_launch_description(): | ||
enable_tf = LaunchConfiguration('enable_tf') | ||
enable_tf_arg = DeclareLaunchArgument( | ||
'enable_tf', | ||
default_value='True', | ||
description='enable tf launch file', | ||
) | ||
enable_seapath = LaunchConfiguration('enable_seapath') | ||
enable_seapath_arg = DeclareLaunchArgument( | ||
'enable_seapath', | ||
default_value='True', | ||
description='enable seapath launch file', | ||
) | ||
|
||
seapath_ros_driver_node = Node( | ||
package='seapath_ros_driver', | ||
executable='seapath_ros_driver_node', | ||
name='seapath_ros_driver_node', | ||
parameters=[os.path.join(get_package_share_directory('asv_setup'),'config','sitaw','seapath_params.yaml')], | ||
output='screen', | ||
condition=IfCondition(enable_seapath), | ||
|
||
) | ||
map_manager_node = Node( | ||
package='map_manager', | ||
executable='map_manager_node', | ||
name='map_manager_node', | ||
parameters=[os.path.join(get_package_share_directory('asv_setup'),'config','sitaw','map_manager_params.yaml')], | ||
output='screen', | ||
) | ||
landmark_server_node = Node( | ||
package='landmark_server', | ||
executable='landmark_server_node', | ||
name='landmark_server_node', | ||
parameters=[os.path.join(get_package_share_directory('asv_setup'),'config','sitaw','landmark_server_params.yaml')], | ||
# arguments=['--ros-args', '--log-level', 'DEBUG'], | ||
output='screen', | ||
) | ||
tf_launch = IncludeLaunchDescription( | ||
launch_description_source=PythonLaunchDescriptionSource(os.path.join(get_package_share_directory('asv_setup'), 'launch', 'tf.launch.py')), | ||
condition=IfCondition(enable_tf), | ||
) | ||
return LaunchDescription([ | ||
enable_tf_arg, | ||
tf_launch, | ||
enable_seapath_arg, | ||
seapath_ros_driver_node, | ||
map_manager_node, | ||
landmark_server_node | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sitaw folder should be restructured, add polygons in their own folder, params somewhere else