2
votes
how to use the rate.sleep function properly
Your approach of using timers and callbacks this way is slightly odd, for several reasons:
you're re-creating a timer each time you get a pose (which, under the hood, makes use of the callback system,...
1
vote
Accepted
1
vote
Accepted
ros2 foxy - set / publish simulation time and enable use_sim_time
I solved my problem. I just used the wrong msg-type. I thought, the msg to be published into /clock should be of type "builtin_interfaces/msg/Time" but you need to use: "rosgraph_msgs/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rostime × 43ros × 37
ros-melodic × 5
ros-kinetic × 4
rospy × 4
roscpp × 4
timestamp × 4
use-sim-time × 4
ros2 × 3
ubuntu × 3
ros-indigo × 3
transform × 3
clock × 3
gazebo × 2
tf2 × 2
time × 2
timesynchronizer × 2
matlab × 1
python × 1
c++ × 1
kinect × 1
optimization × 1
ros-foxy × 1
rclpy × 1
rosbag × 1