Questions tagged [use-sim-time]
The use-sim-time tag has no usage guidance.
28
questions
0
votes
0
answers
16
views
Need whole system to be running on sim time
I'm using Ubuntu 22.04 and ros2 humble. When using nav2, my robot follows its set path, but midway through gets an error then spins and comes to a stop. I believe its because of this line in the error:...
1
vote
1
answer
87
views
This->Now not returning sim time in ROS2 when playing bag file
I'm using robot localization nodes and I noticed that if my system fails to update fast enough the node propagates the state using the last predicted values. This results in a massive time step.
...
0
votes
1
answer
63
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 ...
0
votes
2
answers
546
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 ...
0
votes
0
answers
41
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 ...
0
votes
0
answers
45
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 ...
0
votes
1
answer
5k
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 ...
0
votes
1
answer
8
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 ...
0
votes
1
answer
916
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 ...
0
votes
1
answer
24
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 ...
0
votes
1
answer
73
views
Node stuck at launching when launch with use_sim_time
Publisher Node
...
0
votes
3
answers
214
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 ...
0
votes
1
answer
72
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.
...
0
votes
1
answer
1k
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/...
0
votes
1
answer
124
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 ...
0
votes
1
answer
9
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:
...
0
votes
1
answer
15
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 ...
0
votes
1
answer
31
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 ...
0
votes
1
answer
56
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
...
0
votes
1
answer
32
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 ...
0
votes
2
answers
61
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 ...
0
votes
2
answers
44
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:
...
0
votes
1
answer
179
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 ...
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 ...
0
votes
1
answer
7
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 ...
0
votes
1
answer
9
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,...
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.
...
0
votes
1
answer
26
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 ...