stabilize on position task#57
Hidden character warning
Conversation
| "runArgs": [ | ||
| "--network", "host", | ||
| "--device-cgroup-rule", "c *:* rmw", | ||
| "--device-cgroup-rule: 'c *:* rmw'", |
There was a problem hiding this comment.
Docker does not build on my setup
There was a problem hiding this comment.
U mnie nie działa ta konfiguracja wcześniejsza
| @@ -0,0 +1,359 @@ | |||
| from rclpy.node import Node | |||
There was a problem hiding this comment.
Why are we making another file that modifies mfsmc controller?
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
Why can't we change actual node if the behavior is almost the same?
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
if self.timeout_sec and ... is fine
| @@ -1,12 +1,14 @@ | |||
| import time | |||
| from typing import Optional | |||
There was a problem hiding this comment.
all nodes should be in folder package_name/nodes
| ) | ||
| ) | ||
|
|
||
| def generate_launch_description(): |
| 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]) |
There was a problem hiding this comment.
| 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]) |
|
Merging develop is required before merging |
No description provided.