Skip to content

stabilize on position task#57

Open
n2oneProgrammer wants to merge 1 commit into
developfrom
50-zrobić-zadanie-zanurzania-sie-na-zadaną-głębokość

Hidden character warning

The head ref may contain hidden characters: "50-zrobi\u0107-zadanie-zanurzania-sie-na-zadan\u0105-g\u0142\u0119boko\u015b\u0107"
Open

stabilize on position task#57
n2oneProgrammer wants to merge 1 commit into
developfrom
50-zrobić-zadanie-zanurzania-sie-na-zadaną-głębokość

Conversation

@n2oneProgrammer

Copy link
Copy Markdown
Contributor

No description provided.

@n2oneProgrammer n2oneProgrammer linked an issue Jan 22, 2026 that may be closed by this pull request
"runArgs": [
"--network", "host",
"--device-cgroup-rule", "c *:* rmw",
"--device-cgroup-rule: 'c *:* rmw'",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker does not build on my setup

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

U mnie nie działa ta konfiguracja wcześniejsza

@@ -0,0 +1,359 @@
from rclpy.node import Node

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we making another file that modifies mfsmc controller?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jest to eksperymentalna wersja, w której przepisałem troche inaczej tego MFSC i jeszcze nie wiem, którą ostatecznie wybieramy, to jest do obgadania i zobaczenia co będzie lepiej działało

@@ -0,0 +1,16 @@
import rclpy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we change actual node if the behavior is almost the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chciałem zostawić opcje wyboru między nową wersja a starą wersja MFSMC, więc z tego pwoodu są 2 pliku nodów

def near_dist(self):
return self.get_parameter("near_dist").value

def execute_callback(self, goal_handle):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameters should have declared type. For example

goal_handle: str

while not (is_near and time.time() - near_start_time > self.near_time):
position = self.position_stabilization
att_rpy = self.rotation_stabilization
print(self.control_operations.position(), position)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should always use ros2 logger instead of print

action_type,
action_name: str,
timeout_sec: float = 30.0,
timeout_sec: Optional[float] = 30.0,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should add import like this
from py_trees.behaviour import Behaviour
and use Behaviour class directly as parent of this class

).nanoseconds / 1e9

if elapsed > self.timeout_sec:
if self.timeout_sec is not None and elapsed > self.timeout_sec:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if self.timeout_sec and ... is fine

@@ -1,12 +1,14 @@
import time
from typing import Optional

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all nodes should be in folder package_name/nodes

)
)

def generate_launch_description():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

rviz_timer = TimerAction(period=1.0, actions=[rviz_node])
stonefish_timer = TimerAction(period=2.0, actions=[launch_include])
traj_gen_timer = TimerAction(period=3.0, actions=[tf_traj_gen])
tasks_timer = TimerAction(period=3.0, actions=[stabilize_on_position_action,stabilize_on_position_2_action, behavior_tree])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tasks_timer = TimerAction(period=3.0, actions=[stabilize_on_position_action,stabilize_on_position_2_action, behavior_tree])
tasks_timer = TimerAction(period=3.0, actions=[stabilize_on_position_action, stabilize_on_position_2_action, behavior_tree])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, line is too long

@PFlak

PFlak commented Jan 25, 2026

Copy link
Copy Markdown
Member

Merging develop is required before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zrobić zadanie zanurzania sie na zadaną głębokość

2 participants