Skip to content

Commit

Permalink
chore: not activate initial pose node
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <hayato-m126@users.noreply.github.com>
  • Loading branch information
hayato-m126 committed Aug 13, 2024
1 parent 0ded80a commit 12a5ab0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions log_evaluator/launch/log_evaluator.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from launch.conditions import IfCondition
from launch.launch_description_sources import AnyLaunchDescriptionSource
from launch_ros.actions import Node
from launch_ros.descriptions import ParameterValue
import yaml

from log_evaluator.launch_config import log_evaluator_config
Expand Down Expand Up @@ -337,12 +336,17 @@ def launch_topic_state_monitor(context: LaunchContext) -> list:

def launch_initial_pose_node(context: LaunchContext) -> list:
conf = context.launch_configurations
initial_pose = conf.get("initial_pose", "")
direct_initial_pose = conf.get("direct_initial_pose", "")
params = {
"use_sim_time": True,
"initial_pose": ParameterValue(conf.get("initial_pose", ""), value_type=str),
"direct_initial_pose": ParameterValue(conf.get("direct_initial_pose", ""), value_type=str),
"initial_pose": initial_pose,
"direct_initial_pose": direct_initial_pose,
}

if initial_pose == "" and direct_initial_pose == "":
return [LogInfo(msg="initial_pose_node is not activated")]

return [
Node(
package="log_evaluator",
Expand Down

0 comments on commit 12a5ab0

Please sign in to comment.