-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ros2] gazebo doesn't pick up the "out:=/scan" from turtlebot3 world file #991
Comments
It looks like it is related to ros2/rcl#491 |
I think from Eloquent we may need to use this in the SDF: |
That doesn't seem to be sufficient. I'm still seeing the output on /laserscan/out instead of scan |
Oh sorry, maybe this? <argument>--ros-args -r ~/out:=scan</argument> I hope we don't need this 😓 <argument>--ros-args</argument>
<argument>-r</argument>
<argument>~/out:=scan</argument> |
Only that last method works :( |
Ok, thanks for testing. I can add a new |
Since these <plugin name="my_imu_plugin" filename="libgazebo_ros_imu_sensor.so">
<ros>
<argument>~/out:=imu</argument>
</ros>
</plugin> |
@orduno , yes, that's the current workaround. When I have some time I want to automatically prepend Also note that upstream will soon be updated to support the old method with warnings, which should ease the transition. See ros2/rcl#495 (comment). |
I also noticed the same behavior with |
See #1011 for an attempt at implementing the Tested on turtlebot3 burger at ROBOTIS-GIT/turtlebot3_simulations@dc80aa5 |
Fixed in #1011 for Eloquent, thanks @mikaelarguedas ! I think it's a good idea to backport the |
At least one user is mixing dashing and eloquent and getting bad results: osrf/gazebo_tutorials#104. Dashing still has one year of support. We could backport the |
Sometime this week a change has merged somewhere in ROS2 source (using ros2.repos master file), that seems to have broken Gazebo ability to rename the turtlebot3 topics like "/scan" and "/imu" (see here: https://github.com/ROBOTIS-GIT/turtlebot3_simulations/blob/ros2/turtlebot3_gazebo/models/turtlebot3_waffle/model-1_4.sdf#L160)
Now we don't see those topics but we see default ones like "/turtlebot3_laserscan/out" instead of "/scan"
Maybe this is related to the "--ros-args" changes that merged upstream? Just a guess.
To reproduce:
git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
export GAZEBO_MODEL_PATH=~/turtlebot3_simulations/turtlebot3_gazebo/models
gazebo --verbose -s libgazebo_ros_init.so ~/turtlebot3_simulations/turtlebot3_gazebo/worlds/turtlebot3_worlds/waffle.model
ros2 topic echo /scan
(nothing will echo)ros2 topic list
will not show the /scan topic, but will show /turtlebot3_laserscan/out insteadThe text was updated successfully, but these errors were encountered: