ros_gz
ros_gz copied to clipboard
`expand_gz_topic_names` parameter does not work
Environment
- OS Version: Ubuntu 22.04
- Source or binary build? binary build by
apt
, versioniron
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
- Follow the Example 6.
- 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
- In other terminal, run this command:
ign topic --list
# Output: /chatter
The topic is still /chatter
, not /demo/chatter
as expected.
- Run other command to check whether the parameter is existing:
ros2 param list | grep expand_gz_topic_names
# Output: nothing found
- This code snippet shows that
expand_gz_topic_names
only works whenconfig_file
is given.
Output