Questions tagged [use-sim-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Mocking ros::Time::now in rostest/gtest

I am running the tests for my ROS C++ node using rostest/gtest. Currently I have a problem where I have a class method that I need/want to test that out of date data based on the value of ...
Ricardo Marques's user avatar
0 votes
2 answers
173 views

ros2 foxy - set / publish simulation time and enable use_sim_time

Dear Robotics Community, I have a simple problem. I working with ros2 foxy and have a simulator (not important for the question). I want to set the ros clock from my simulator-loop such that I can use ...
klanky's user avatar
  • 13
0 votes
0 answers
28 views

How to deal with unsynchronized sensor data in a ROS2 bagfile?

I am using a ROS2 package for cooperative SLAM. After testing the package installation with official datasets like GrAco I recorded my own dataset with my vehicle. The main sensors I use are 3D-LiDAR ...
Talha's user avatar
  • 3
0 votes
0 answers
43 views

Why does rqt_plot plot the velocity obtained from /join_states at negative time values?

I am trying to get a transient process of changing the speed of the wheel to which I am giving a command signal using rqt_plot, but for some reason the time takes negative values along the abscissa ...
Femidis's user avatar
0 votes
1 answer
3k views

rclpy.time.Time() vs Node.get_clock().now()

I'm using Ubuntu 22, ROS2 Humble, Gazebo 11. I tried to print the same value in two different ways that are: rclpy.time.Time() Node.get_clock().now() The time ...
oferb's user avatar
  • 1
0 votes
1 answer
7 views

publisher from tutorial doesn't react to simulation time of 1s

I followed this tutorial (ROS/Tutorials/WritingPublisherSubscriber(python) - ROS Wiki) and everything works fine for real/wall time. But then I tested the same code with simulation time (in separate ...
user avatar
0 votes
1 answer
502 views

When should you set use_sim_time to true

Hello all, I am currently a little bit confused by when should I set the 'use_sim_time' parameter in my node to be true? Because from looking at the example in some projects, such as Nav2, all their ...
user avatar
0 votes
1 answer
10 views

Does tf2 rely on current time?

We recorded some rosbags and now we want to play them for simulation. But Ros2 Foxy doesn't have a feature like Ros1's use_sim_time and we can't switch to a newer ...
user avatar
0 votes
1 answer
40 views

Node stuck at launching when launch with use_sim_time

Publisher Node ...
user avatar
0 votes
3 answers
114 views

Should I manually pass use_sim_time to all nodes in a ROS 2 launchfile?

Should I always manually transmit the use_sim_time manually to all my nodes in a launchfile in ROS 2, if I want to be able to slow down or accelerate the simulation ...
user avatar
0 votes
1 answer
57 views

Issue with ros::Time when using /use_sim_time

Hello everyone, I have the following issue that ros::Time::now()` always returns zero using the following minimum example. ...
user avatar
0 votes
1 answer
603 views

How to set use_sim_time

Hi, I am wondering how you can set use_sim_time to true, or enable it for my nodes. Do I have to do it within my nodes? or in my launch file? Also, is this something you must do for all your nodes and/...
user avatar
0 votes
1 answer
89 views

How use_sim_time works?

I am currently working on VIORB SLAM which using both camera and imu. I have to make the system work without ROS, but currently I successfully run the recorded datasets using use_sim_time only. This ...
user avatar
0 votes
1 answer
7 views

Another question about extrapolation in the past

Hello all, That's a question that has been asked multiple times but none of the solution have worked so far. I'm playing data from a rosbag and when trying to query the tf I have this error: ...
user avatar
0 votes
1 answer
10 views

use_sim_time only for some of the running nodes

Is there some way to enable use_sim_time only for dedicated nodes? I have a scenario in which a node should use the simulated time published on ...
user avatar
0 votes
1 answer
14 views

Python Process Died Exit Code -11

I have a node, "ReceiveOrder.py", that is run via a roslaunch file and unexpectedly dies when I run it. I have two clues to offer: The following is part of what I see in the roslaunch ...
user avatar
0 votes
1 answer
27 views

Error in rosbag play despite setting use_sim_time param

(ROS Hydro on Ubuntu 12.04) I am following the tutorial on Recording and Playing Back Kinect Data. First, I recorded a rosbag file using ...
user avatar
0 votes
1 answer
23 views

"use_sim_time" parameter disabled tf

Hello,every one, After I added <param name ="/use_sim_time" value="true"/> in my launch file,the rviz can not show the tf tree and there ...
user avatar
0 votes
2 answers
45 views

ros::Time::now() always return wall time in c++

Hey guys, I have a very frustrating problem using Ros Hydro on ubuntu 12.04. I have a Gazebo Simulation posting telemetry data and I use this in a node to create a tf-tree for the simulation. Now I ...
user avatar
0 votes
2 answers
34 views

Why isn't rospy.Rate.sleep() terminating?

Hi, I have written a python script which takes two tf frames and writes the transform between them to a file. The abbreviated code of the script looks like this: ...
user avatar
0 votes
1 answer
91 views

rosbag --clock time for files recorded on a different machine

I ran rosbag record on a laptop to produce a bag file. However, all of the nodes producing the topics were on my robot's computer (i.e., on the same network, but not on the same machine). I am now ...
automatom's user avatar
  • 5,557
0 votes
1 answer
1 view

Publishing rate of gazebo sensor plugins broken on fuerte?

Hi everyone, it looks to me like the publish rate of sensors in the currently installed gazebo version from .debs (1.4.15-s1338549736~oneiric) is broken. For instance, if I start the hector quadrotor ...
Stefan Kohlbrecher's user avatar
0 votes
1 answer
3 views

ignore "/use_sim_time" parameter

Hi, is there a way to ignore the "/use_sim_time" parameter in a node, so that it uses the system time instead of clock? Thanks! cheers Jonas Originally posted by robotrover on ROS Answers ...
user avatar
0 votes
1 answer
8 views

rospy horrible performance with sim_time

It is widely known that python isn't the best language when it comes to performance. But I've detected that mixing rospy and a simulation environment leads to awful performance. Here's a quick example,...
user avatar
0 votes
1 answer
6 views

TransformListener Could not find a common time /base_link and /map

I recorded bags on different computers/robots during an experiment and now I'm trying to replay them. All computers were synchronized with chrony. Now, I play all bags with the same rosbag command. ...
user avatar
0 votes
1 answer
15 views

roscpp using simulated time

I am trying to run gmapping_slam on some old data to improve the position estimate and during my use of the resulting /map -> /odom I realized the stamp on the transforms were using the current ...
wjwwood's user avatar
  • 6,517