Gazebo | Ignition | Community
Ask Your Question
0

WARNING: no messages received and simulated time is active. Is /clock being published?

asked 2018-06-29 09:15:04 -0500

samo gravatar image

i wrote a c++ node that publish std_msgs::Float64 to a topic where my gazebo is connected.

so the connection is done, but i have a problem cause gazebo didn't receive the message sent.

i'm trying : rostopic echo /pkg_robot/joint1_position_controller/command

to message published, and i have this warning :

WARNING: no messages received and simulated time is active. Is /clock being published?

if you could help i would be so thankful.

edit retag flag offensive close merge delete

Comments

This question is rather vague. If you update your question with additional pertinent details (formatted code, etc.), it's more likely that someone here will be able to help you.

josephcoombe gravatar imagejosephcoombe ( 2018-06-29 14:20:47 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2022-06-29 07:32:50 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Yeah, the simulation in Gazebo has been paused. Just start that and you will see /clock start publishing msgs

edit flag offensive delete link more
0

answered 2021-08-10 23:59:59 -0500

anjulo gravatar image
edit flag offensive delete link more
0

answered 2018-06-29 14:19:22 -0500

Possible Problems:

  • Gazebo is paused
    solution: Un-pause Gazebo. "simulated time is active" means that ROS Time is slaved to simulation.
  • Your C++ ROS Node is not publishing to /pkg_robot/joint1_position_controller/command
    solution: Confirm that your C++ ROS Node is in fact written to publish to /pkg_robot/joint1_position_controller/command
  • Your C++ ROS Node is otherwise not doing what your expect
    solution 1:Check your C++ ROS Node (maybe consult http://wiki.ros.org/ROS/Tutorials/Wri...)
    solution 2: Update your question here with your C++ ROS Node (formatted)

Aside, how do you intend subscribe to this /pkg_robot/joint1_position_controller/command ROS Topic on the Gazebo side?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-06-29 09:15:04 -0500

Seen: 29,554 times

Last updated: Jun 29 '18