Skip to content
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

Update gazebo_ros_utils.cpp #1511

Open
wants to merge 1 commit into
base: noetic-devel
Choose a base branch
from

Conversation

kintzhao
Copy link

@kintzhao kintzhao commented Nov 7, 2023

why delete it commit, it has error for multi_robot.

the same project ( https://github.com/YZH-bot/multi_turtlebot3_navigation) and launch, has different tf_prefix:

melodic <tf_prefix> = /tb3_2
[ INFO] [1699271126.111498612, 0.005000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1699271126.367119382, 0.171000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_0/'
[ INFO] [1699271126.367146412, 0.171000000]: Starting Laser Plugin (ns = /tb3_0/)
[ INFO] [1699271126.367589006, 0.171000000]: Laser Plugin (ns = /tb3_0/) <tf_prefix_>, set to "/tb3_0"
[ INFO] [1699271126.460272969, 0.171000000]: Starting plugin DiffDrive(ns = /tb3_0//)
[ INFO] [1699271126.460342909, 0.171000000]: DiffDrive(ns = /tb3_0//): = na
[ INFO] [1699271126.460940404, 0.171000000]: DiffDrive(ns = /tb3_0//): <tf_prefix> = /tb3_0
[ INFO] [1699271126.461666926, 0.171000000]: DiffDrive(ns = /tb3_0//): Advertise joint_states
[ INFO] [1699271126.462239042, 0.171000000]: DiffDrive(ns = /tb3_0//): Try to subscribe to cmd_vel
[ INFO] [1699271126.463594362, 0.171000000]: DiffDrive(ns = /tb3_0//): Subscribe to cmd_vel
[ INFO] [1699271126.464234441, 0.171000000]: DiffDrive(ns = /tb3_0//): Advertise odom on odom
[tb3_0/spawn_urdf-4] process has finished cleanly
log file: /root/.ros/log/f9119a9a-7c99-11ee-bc4c-70a8d3041e92/tb3_0-spawn_urdf-4*.log
[ INFO] [1699271126.736215029, 0.373000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_2/'
[ INFO] [1699271126.736237720, 0.373000000]: Starting Laser Plugin (ns = /tb3_2/)
[ INFO] [1699271126.736630927, 0.373000000]: Laser Plugin (ns = /tb3_2/) <tf_prefix_>, set to "/tb3_2"
[ INFO] [1699271126.736865743, 0.373000000]: Starting plugin DiffDrive(ns = /tb3_2//)
[ INFO] [1699271126.736881051, 0.373000000]: DiffDrive(ns = /tb3_2//): = na
[ INFO] [1699271126.737290932, 0.373000000]: DiffDrive(ns = /tb3_2//): <tf_prefix> = /tb3_2
[ INFO] [1699271126.738427561, 0.373000000]: DiffDrive(ns = /tb3_2//): Advertise joint_states
[ INFO] [1699271126.738598915, 0.373000000]: DiffDrive(ns = /tb3_2//): Try to subscribe to cmd_vel
[ INFO] [1699271126.740768595, 0.373000000]: DiffDrive(ns = /tb3_2//): Subscribe to cmd_vel
[ INFO] [1699271126.741374146, 0.373000000]: DiffDrive(ns = /tb3_2//): Advertise odom on odom
[ INFO] [1699271126.743033744, 0.375000000]: Physics dynamic reconfigure ready.
[ INFO] [1699271127.003148832, 0.568000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_1/'
[ INFO] [1699271127.003171934, 0.568000000]: Starting Laser Plugin (ns = /tb3_1/)
[ INFO] [1699271127.003827050, 0.568000000]: Laser Plugin (ns = /tb3_1/) <tf_prefix_>, set to "/tb3_1"
[tb3_2/spawn_urdf-8] process has finished cleanly
log file: /root/.ros/log/f9119a9a-7c99-11ee-bc4c-70a8d3041e92/tb3_2-spawn_urdf-8*.log
[ INFO] [1699271127.103532818, 0.568000000]: Starting plugin DiffDrive(ns = /tb3_1//)
[ INFO] [1699271127.103627446, 0.568000000]: DiffDrive(ns = /tb3_1//): = na
[ INFO] [1699271127.104789588, 0.568000000]: DiffDrive(ns = /tb3_1//): <tf_prefix> = /tb3_1
[ INFO] [1699271127.106056907, 0.568000000]: DiffDrive(ns = /tb3_1//): Advertise joint_states
[ INFO] [1699271127.106131218, 0.568000000]: DiffDrive(ns = /tb3_1//): Try to subscribe to cmd_vel
[ INFO] [1699271127.109744401, 0.568000000]: DiffDrive(ns = /tb3_1//): Subscribe to cmd_vel
[ INFO] [1699271127.110732968, 0.568000000]: DiffDrive(ns = /tb3_1//): Advertise odom on odom

noetic <tf_prefix> =

[ INFO] [1699271278.211178033]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1699271278.211951893]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1699271278.682913794, 0.006000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1699271278.690392282, 0.013000000]: Physics dynamic reconfigure ready.
[ INFO] [1699271279.160430519, 0.373000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_0/'
[ INFO] [1699271279.160459996, 0.373000000]: Starting Laser Plugin (ns = /tb3_0/)
[ INFO] [1699271279.160965646, 0.373000000]: Laser Plugin (ns = /tb3_0/) <tf_prefix_>, set to ""
[ INFO] [1699271279.256451029, 0.373000000]: Starting plugin DiffDrive(ns = /tb3_0//)
[ INFO] [1699271279.256499367, 0.373000000]: DiffDrive(ns = /tb3_0//): = na
[ INFO] [1699271279.257056570, 0.373000000]: DiffDrive(ns = /tb3_0//): <tf_prefix> =
[ INFO] [1699271279.257836492, 0.373000000]: DiffDrive(ns = /tb3_0//): Advertise joint_states
[ INFO] [1699271279.258156851, 0.373000000]: DiffDrive(ns = /tb3_0//): Try to subscribe to cmd_vel
[ INFO] [1699271279.259073676, 0.373000000]: DiffDrive(ns = /tb3_0//): Subscribe to cmd_vel
[ INFO] [1699271279.259296909, 0.373000000]: DiffDrive(ns = /tb3_0//): Advertise odom on odom
[ INFO] [1699271279.539584460, 0.575000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_1/'
[ INFO] [1699271279.539607944, 0.575000000]: Starting Laser Plugin (ns = /tb3_1/)
[ INFO] [1699271279.540136480, 0.575000000]: Laser Plugin (ns = /tb3_1/) <tf_prefix_>, set to ""
[ INFO] [1699271279.540372405, 0.575000000]: Starting plugin DiffDrive(ns = /tb3_1//)
[ INFO] [1699271279.540386711, 0.575000000]: DiffDrive(ns = /tb3_1//): = na
[ INFO] [1699271279.540663841, 0.575000000]: DiffDrive(ns = /tb3_1//): <tf_prefix> =
[ INFO] [1699271279.541259271, 0.575000000]: DiffDrive(ns = /tb3_1//): Advertise joint_states
[ INFO] [1699271279.541295346, 0.575000000]: DiffDrive(ns = /tb3_1//): Try to subscribe to cmd_vel
[ INFO] [1699271279.541929186, 0.575000000]: DiffDrive(ns = /tb3_1//): Subscribe to cmd_vel
[ INFO] [1699271279.542547015, 0.575000000]: DiffDrive(ns = /tb3_1//): Advertise odom on odom
[tb3_0/spawn_urdf-4] process has finished cleanly
log file: /home/robot/.ros/log/53bfb76a-7c9a-11ee-96e9-4b9ee184865e/tb3_0-spawn_urdf-4*.log
[ INFO] [1699271279.821183944, 0.773000000]: Laser Plugin: Using the 'robotNamespace' param: '/tb3_2/'
[ INFO] [1699271279.821206016, 0.773000000]: Starting Laser Plugin (ns = /tb3_2/)
[ INFO] [1699271279.821846578, 0.773000000]: Laser Plugin (ns = /tb3_2/) <tf_prefix_>, set to ""
[ INFO] [1699271279.921383645, 0.773000000]: Starting plugin DiffDrive(ns = /tb3_2//)
[ INFO] [1699271279.921407112, 0.773000000]: DiffDrive(ns = /tb3_2//): = na
[ INFO] [1699271279.921758381, 0.773000000]: DiffDrive(ns = /tb3_2//): <tf_prefix> =
[ INFO] [1699271279.922102470, 0.773000000]: DiffDrive(ns = /tb3_2//): Advertise joint_states
[ INFO] [1699271279.922116153, 0.773000000]: DiffDrive(ns = /tb3_2//): Try to subscribe to cmd_vel
[ INFO] [1699271279.923347946, 0.773000000]: DiffDrive(ns = /tb3_2//): Subscribe to cmd_vel
[ INFO] [1699271279.923542897, 0.773000000]: DiffDrive(ns = /tb3_2//): Advertise odom on odom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant