ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
784 stars 773 forks source link

[BUG] calling `/reset_simulation` causes `/xx/joint_states` stop. #1368

Open ZhenshengLee opened 2 years ago

ZhenshengLee commented 2 years ago

ENV

reproduce

roslaunch a gazebo configuration with joint_state_publisher and robot_state_publisher

rosservice call /gazebo/reset_simulation "{}"

actual behavior

rostopic echo /xxx/joint_states

stop outputing.

expected behavior

rostopic echo /xxx/joint_states

works and output msgs.

other info

may be related with #1347 #169

DongYanqi1029 commented 2 years ago

same problem with my /imu sensor

ba1Sta commented 2 years ago

I met the same problem, the topic configured in the plugin (gazebo_ros_state) will stuck for a long time (nealy 1 minute) after service call: "reset simulation"

Fuhua-Bot commented 1 year ago

the same with my imu topic, I found it seems the imu output data cannot cover the virtual time it has passed, it can only restart the output after the reset timestamp.