Home | Tutorials | Wiki | Issues
Ask Your Question
0

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

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

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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 -0600

Seen: 788 times

Last updated: Jun 29