Open MatteoCarlone opened 1 year ago
@roni-kreinin, may you please give me a hint about this? I'm quite sure you already deal with this with the turtlebot4. This would really help me thanks again!
@MatteoCarlone Are you using gazebo classic or ignition?
Gazebo Classic sorry that I haven’t specified it in the previous question!
TurtleBot4 only supports Ignition so I never tried setting up the RPLIDAR in classic. Your approach does look correct though.
Does the same thing happen if you spawn the first robot without a namespace?
@roni-kreinin I just tried this:
First robot without namespace
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.py
second robot with namespace robot1
ros2 launch irobot_create_gazebo_bringup create3_spawn.launch.py namespace:=robot1 y:=3.0
I get the same problem, I just have the /scan
topic not namespace that publish two times:
ros2 topic info /scan --verbose
Type: sensor_msgs/msg/LaserScan
Publisher count: 2
Node name: scan
Node namespace: /
Topic type: sensor_msgs/msg/LaserScan
Endpoint type: PUBLISHER
GID: 01.0f.5e.ca.0e.17.f3.8d.01.00.00.00.00.00.76.03.00.00.00.00.00.00.00.00
QoS profile:
Reliability: RELIABLE
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
Node name: scan
Node namespace: /
Topic type: sensor_msgs/msg/LaserScan
Endpoint type: PUBLISHER
GID: 01.0f.5e.ca.0e.17.f3.8d.01.00.00.00.00.02.43.03.00.00.00.00.00.00.00.00
QoS profile:
Reliability: RELIABLE
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
ROS2 Humble, Ubuntu 22.04,
I'm using the last released multi-robot simulation in the main branch. I'm able to spawn more than one create correctly namespaced. I had the necessity of adding a lidar sensor on top of the creates in order to use the NAV2 localization and navigation. I just added a xacro lidar description to the create urdf and namespaced it in the plugin section, I report the script below:
and in the create3 description just:
I have the following issue:
The first create that I spawn has the lidar with the
/robot1/scan
topic visible and working correctly, once I add the second robot to the simulation:it spawn with the lidar visuals but there's no
/robot2/scan
topic published.As far as I could have seen with the
ros2 topic info /robot1/scan
there are two publisher on the first topic:but apart from the scan the second robot is well namespaced as /robot2
I Know that's probably not a create3 issue, I was just wondering if you solved this while creating the Turtlebot4 urdf description. Thanks in advance for your help, if it's off-topic I'll close this.