Hi,
I am trying to run a reinforcement learning simulation and I decided, that I needed a force/torque sensor inside my robot to improve it. When I start the simulation, for the first episode everything runs fine. But after I reset the simulation for the first time, the sensor topic stops publishing and my simulation breaks is this because the simulation doeas something to robot model? I have also camera topics and they publish just fine after the reset.
Here is the code of implementation inside the robot:
true 100.0 ft_sensor_topic gripper_dummy_prismatic_joint
And here it is how I read it:
wrench_data = rospy.wait_for_message('/ft_sensor_topic', WrenchStamped, timeout=10)
Here is how the simulation reset is called:
self.reset_proxy = rospy.ServiceProxy(
'/gazebo/reset_simulation', Empty)
...
rospy.wait_for_service('/gazebo/reset_simulation')
try:
# reset_proxy.call()
self.reset_proxy()
When I try to call the topic manually after the reset I get following line:
rostopic echo /ft_sensor_topic
WARNING: no messages received and simulated time is active.
Is /clock being published?
↧