[QST] Emit events through multiple launches.
メンテナーはふだん 1 日以内に返信
@methylDragon がすでに取り組んでいます。
2022年11月17日 から。
評価
この issue はまだ評価されていません。
説明
Bug report
Required Info:
- Operating System:
- Ubuntu22.04
- Installation type:
- binary
- Version or commit hash:
- apt-newest
- DDS implementation:
- rmw_fastrtps_cpp
- Client library (if applicable):
- rclcpp and ros2launch
Steps to reproduce issue
the drive_base_node can be seen in https://github.com/micro-ROS/system_modes/blob/master/system_modes_examples/src/drive_base.cpp and adding initial configuration
with
// driver->set_parameter(rclcpp::Parameter("action", "move"));
driver->trigger_transition(lifecycle_msgs::msg::Transition::TRANSITION_CONFIGURE);
first launch drive_base.launch.py
def generate_launch_description():
return launch.LaunchDescription([
launch_ros.actions.LifecycleNode(
package='sm_guardian',
executable='drive_base_node',
name='drive_base',
namespace='',
output='screen')
])
then launch activate_drive.launch.py
import os
import launch
from launch import LaunchIntrospector
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import EmitEvent
from launch.actions import LogInfo
from launch.actions import RegisterEventHandler
from launch_ros.actions import Node
from launch_ros.actions import LifecycleNode
from launch_ros.actions import SetParameter
from launch_ros.events.lifecycle import ChangeState
from launch_ros.event_handlers import OnStateTransition
import lifecycle_msgs.msg
def generate_launch_description():
# Set LOG format
# os.environ['RCUTILS_CONSOLE_OUTPUT_FORMAT'] = '{time}: [{name}] [{severity}]\t{message}'
# Launch Description
ld = launch.LaunchDescription()
drive_base_node = LifecycleNode(
package='sm_guardian',
executable='drive_base_node',
name='drive_base',
namespace='',
output='screen')
drive_base_executable = 'drive_base_node'
# Make the drive_base node take the 'configure' transition
drive_base_configure_trans_event = EmitEvent(
event=ChangeState(
lifecycle_node_matcher = launch.events.process.matches_executable(drive_base_executable),
transition_id = lifecycle_msgs.msg.Transition.TRANSITION_CONFIGURE,
)
)
# drive_base_set_param = SetParameter('drive_base', )
# Make the drive_base node take the 'activate' transition
drive_base_activate_trans_event = EmitEvent(
event = ChangeState(
lifecycle_node_matcher = launch.events.process.matches_executable(drive_base_executable),
transition_id = lifecycle_msgs.msg.Transition.TRANSITION_ACTIVATE,
)
)
# Add the actions to the launch description.
# The order they are added reflects the order in which they will be executed.
# ld.add_action(drive_base_node)
ld.add_action(drive_base_activate_trans_event)
return ld
Expected behavior
the drive_base_node can be activated after the events emitted in activate_drive.launch.py
Actual behavior
the state cannote be activated after launching activate_drive.launch.py
Additional information
actually I do not know if it's a bug report or feature request.
- 主要言語
- Python
- スター
- 156
- フォーク
- 200
- 平均マージ
- 2日 11時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ros2/launch のほかの issue
-
Use a relative target for the `latest` log symlink so it survives different absolute mount paths (host/Docker)対応中かも @Old-Ding が 139 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ros2/launch#978 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add OpaqueFunction to list at docs.ros.org再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
[launch_testing] pytest>8.1 dropped the legacy "path" argument from its internal hooks on humble対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
hive size:simple
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
backend enhancement priority:P3
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
geolens-io/geolens#4161 ·
メンテナーはふだん 1 日以内に返信