Skip to content

Commit

Permalink
fix: fix 'set_logging_level' launch file arguments (#186)
Browse files Browse the repository at this point in the history
This commit ensures that the correct arguments are passed to the
`set_logging_level` node in the `put_robot_in_world` launch file.
  • Loading branch information
rickstaa authored Nov 23, 2023
1 parent 39c8f12 commit 2bc9a26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions panda_gazebo/launch/put_robot_in_world.launch
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,8 @@
</include>

<!--Change 'franka_ros' nodes logging levels-->
<node pkg="panda_gazebo" type="set_ros_node_logging_level.py" name="set_logging_level" output="$(arg output)">
<param name="level" value="warn"/>
<param name="name" value="ros.franka_gazebo.FrankaGripperSim"/>
</node>
<node if="$(arg disable_franka_gazebo_logs)" pkg="panda_gazebo" type="set_logging_level.py" name="set_ros_node_logging_level" output="$(arg output)">
<param name="level" value="error"/>
<param name="name" value="ros.franka_gazebo"/>
</node>
<node if="$(arg disable_franka_gazebo_logs)" pkg="panda_gazebo" type="set_logging_level.py" name="set_logging_level_franka_gazebo" args="--name ros.franka_gazebo --level error" output="$(arg output)"/>
<node pkg="panda_gazebo" type="set_logging_level.py" name="set_logging_level_franka_control" args="--name ros.franka_gazebo.FrankaGripperSim --level warn" output="$(arg output)"/>

<!--Start MoveIt-->
<include file="$(find panda_moveit_config)/launch/demo.launch" pass_all_args="true">
Expand Down
2 changes: 1 addition & 1 deletion panda_gazebo/scripts/set_logging_level.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Get input arguments.
parser = argparse.ArgumentParser(description="Set logging level of a ROS logger.")
parser.add_argument(
"-l", "--level", nargs="?", type=str, default="error", help="logging level"
"-l", "--level", nargs="?", type=str, default="info", help="logging level"
)
parser.add_argument(
"-n", "--name", nargs="?", type=str, required=True, help="logger name"
Expand Down

0 comments on commit 2bc9a26

Please sign in to comment.