Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Force sensor topic not publishing after simulation reset

$
0
0
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: true100.0ft_sensor_topicgripper_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?

Viewing all articles
Browse latest Browse all 7017

Trending Articles