ros_gz icon indicating copy to clipboard operation
ros_gz copied to clipboard

`expand_gz_topic_names` parameter does not work

Open elkuno213 opened this issue 2 months ago • 2 comments

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build? binary build by apt, version iron

Description

  • Expected behavior: when expand_gz_topic_names is true, the namespace on Gazebo should be changed.
  • Actual behavior: the namespace does not change and this parameter cannot be found via ros2 param list.

Steps to reproduce

  1. Follow the Example 6.
  2. Run this command:
ros2 run ros_gz_bridge parameter_bridge chatter@std_msgs/msg/[email protected] \
  --ros-args -p expand_gz_topic_names:=true -r __ns:=/demo
  1. In other terminal, run this command:
ign topic --list 
# Output: /chatter

The topic is still /chatter, not /demo/chatter as expected.

  1. Run other command to check whether the parameter is existing:
ros2 param list | grep expand_gz_topic_names
# Output: nothing found
  1. This code snippet shows that expand_gz_topic_names only works when config_file is given.

Output

image image

elkuno213 avatar Apr 07 '24 16:04 elkuno213