Skip to content

Commit

Permalink
the node is working and running, need to discuss how the other teams …
Browse files Browse the repository at this point in the history
…are going to get the parameters from it
  • Loading branch information
LeRatDuFA committed Oct 25, 2023
1 parent ccb8192 commit 275b625
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
15 changes: 12 additions & 3 deletions asv_setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
find_package(rclpy REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)

ament_python_install_package(scripts)

# Install launch files.
install(DIRECTORY
launch
DESTINATION share/${PROJECT_NAME}/
DESTINATION share/${PROJECT_NAME}
)

install(PROGRAMS
scripts/parameter_manager_node.py
DESTINATION lib/${PROJECT_NAME}
)

ament_package()
6 changes: 3 additions & 3 deletions asv_setup/launch/launch_to_erase.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
launch:
- node:
pkg: test_pkg
exec: test_node
pkg: asv_setup
exec: parameter_manager_node.py
name: parameter_manager_node
output: screen
param:
- from: /home/jade/ros2_ws/src/test_pkg/test_pkg/config/params.yaml
- from: /home/jade/ros2_vortex_ws/src/vortex-asv/asv_setup/config/freya.yaml


12 changes: 8 additions & 4 deletions asv_setup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
<name>asv_setup</name>
<version>0.0.0</version>
<description>The asv_setup package</description>

<maintainer email="[email protected]">alekskl01</maintainer>

<license>MIT</license>

<buildtool_depend>ament_cmake_python</buildtool_depend>

<exec_depend>rclpy</exec_depend>
<exec_depend>geometry_msgs</exec_depend>
<exec_depend>sensor_msgs</exec_depend>

<buildtool_depend>ament_cmake</buildtool_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
Empty file added asv_setup/scripts/__init__.py
Empty file.
8 changes: 5 additions & 3 deletions asv_setup/scripts/parameter_manager_node.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import rclpy
from rclpy.node import Node
import ast
Expand Down Expand Up @@ -36,12 +37,13 @@ def StringInto2DArray(input_string):
def main():
rclpy.init()
parameter_manager_node = ParameterManagerNode()
test = parameter_manager_node.asv_thruster_manager_output
test = parameter_manager_node.configuration_matrix
print(test)
#rclpy.spin(joystick_interface)
#parameter_manager_node.destroy_node()
parameter_manager_node.destroy_node()
rclpy.shutdown()



if __name__ == "__main__":
main()
main()

0 comments on commit 275b625

Please sign in to comment.