Skip to main content

Questions tagged [clock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

rosbag clock different

When I run command "rosbag play --clock A.bag" and "rostopic echo /clock" two times for catching the simulated clock time, there start time and time duration is not the same, e.g. ...
user37849's user avatar
0 votes
1 answer
7 views

/clock rate is lower than set in ROS2 Gazebo

I changed publish_rate and /clock rate was changed successfully, but the rate is lower than set. For example, when I changed it to 1000Hz, which can be achieved in ROS Noetic, the result shows: ...
user avatar
0 votes
1 answer
66 views

Time synchronization approaches

I have a simple rover using ROS2 Foxy with a lidar running on Raspberry Pi and the rest of the stack running on Ubuntu PC (localization, navigation and odometry). AMCL is complaining about ...
user avatar
0 votes
1 answer
35 views

Query on get_clock()->now()

Hi, I am trying to update the msg header stamp using the below method. custom_msg.header.stamp = get_clock()->now(); Seems like this updates both ...
user avatar
0 votes
1 answer
28 views

createTimer() replacement in eloquent

In ROS1 we can simply do: ros::Timer timer = nh.createTimer(ros::Duration(0.1), timerCallback); This gives us a tick approximately every 100 ms of ROS time. In ...
user avatar
0 votes
1 answer
106 views

Best way of publishing to /clock topic type rosgraph_msgs/Clock?

Ultimately I need to publish an accelerated time to the /clock topic which the rest of my simulation nodes are using. I have managed to concoct two separate launch files; the first launch file ...
user avatar
0 votes
1 answer
148 views

Can I use the clock from a bag in ROS2?

I don't see an option for ros2 bag play --clock <bag>, is there an equivalent feature in ROS2 yet? Originally posted by dawonn_haval on ROS Answers with ...
user avatar
0 votes
1 answer
1 view

TF update slow, Sychronize laptop request time with ROS update time

Currently My TF package update extremely slow. Error pops up for "Lookup would require extrapolation into the future. Requested time xxxxx but the latest data is at time yyyyyyy." ...
user avatar
0 votes
1 answer
13 views

Clock signal across multiple machines

Hi, I'd like to know how the clock signal works when running a ROS sytem across multiple machines (all machines using the same master, of course). Does the ROS Master set the clock signal for all ...
user avatar
0 votes
1 answer
58 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
285 views

[ROS2] msg stamp time difference

Hi, I'm trying to assess if the msg is too old by comparing current time and the msg time stamp. ...
user avatar
0 votes
1 answer
40 views

Communication between docker and host

Hi Guys, This is with respect to the q313094, I was able to get rid of the /use_sim_time is not set, will not subscribe to simulated time [/clock] topic error by ...
user avatar
0 votes
1 answer
2 views

Pose in stage_ros simulation is incorrect

Environment and package: Ubuntu 16.04, ros-kinetic, stage_ros branch lunar-devel Problem encountered: When a node keeps publishing a static geometry_msgs/Twist ...
user avatar
0 votes
1 answer
19 views

ros2: Clock sleep_until

Hi, Is there an implementation available for sleep_until or sleep_for with Clock interfaces on ros2? The document here says it does, http://design.ros2.org/articles/clock_and_time.html but could'nt ...
user avatar
0 votes
1 answer
161 views

WARNING: no messages received and simulated time is active. Laser Scan Matcher

ROS Kinetic - Ubuntu 16.04 Looking this up, all the forum posts I can find are either about gazebo or don't really have an answer. Laser Scan Matcher node takes an input and produces an output. The ...
user avatar
0 votes
1 answer
91 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

ROS2 clock stuck within inhereted class

Hello everyone, my clock always stuck at the moment the node start for the following code. I mimic the coding style of the demo talker node. Am I doing anything wrong? ...
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
18 views

How to publish messages on a topic of type rosgraph_msgs/Clock?

Hello! I want to give values to a topic with this type of mesage (rosgraph_msgs/Clock) I create a variable called "reloj" for example: rosgraph_msgs::Clock reloj; How do I give a value to ...
user avatar
0 votes
1 answer
29 views

Gazebo is not publishing clock

My Gazebo is not publishing the clock anymore. I don't know what I did wrong. A few days ago it worked, but not anymore. "use_sim_time" is set to true (...
user avatar
0 votes
1 answer
8 views

Rosbag and simulated time

Hello all, I am trying to run a bag file if simulated time but I am not succeeding on it. Here is what happens: After I run the bag file with the command ...
user avatar
0 votes
2 answers
7 views

tf::TransformListener gets wrong tf

Hello, TL;DR tf::TransformListener gets a different transform than shown in RVIZ I am having quite a strange problem. I am using a rosbag file to playback recorded data and I am adding new transforms ...
user avatar
0 votes
1 answer
2 views

How to Run Multiple Gazebo Simulations with Unique Clocks

As a follow on to my previous question: http://answers.ros.org/question/241005/gazebo-topic-publication-issue-within-namespaced-group-tag/ I'm trying to run multiple Gazebo simulations on one machine, ...
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
3 answers
14 views

ira_laser_tools merger doesn't subscribe to topics from laser in gazebo

Hey together, please see edit #1 and #2. The node for the laser scanner won't subscribe to the topics given in its parameters in the launch file. But the scan topics are published correctly. I am ...
user avatar
0 votes
1 answer
16 views

Does ros::Duration::sleep spin?

If I do ros::Duration::sleep does ros spin and are callback functions called? If not is there a way to pause the program while still managing callbacks? Originally posted by HassanNadeem on ROS ...
user avatar
0 votes
1 answer
6 views

Publish a Clock - time stuff in ROS

Hello ROS community ! I have question about Time in ROS (I'm in Fuerte on Ubuntu 12.04). Let me explain the situation : I have a basic simulator written with ROS, that receive an /action topic, ...
user avatar
0 votes
2 answers
2 views

How to configure /clock topic in launch file - costmap_2d

Hi, I have this case, when I use rosrun costmap_2d costmap_2d_node everything works fine and I get my costmap. But I tried to run this node from a launch file, but ...
user avatar
0 votes
1 answer
44 views

octomap_server doesn't create map

I'm trying to let the octomap_server create a map from my Pointcloud2 messages. The pointcloud gets a transform, the header frame_id is correct and the header and the transform use the same timestamp. ...
user avatar
0 votes
1 answer
14 views

rosbag not publishing clock

I recorded some bagfiles with different experiments, then using the rosbag cookbook I change some timestamps (http://www.ros.org/wiki/rosbag/Cookbook). Now when playing back the new bagfiles, the ...
user avatar
0 votes
1 answer
9 views

How to launch rxbag or rqt_bag with the --clock option

Hello I am launching the playback of a bag file using rosbag play. Because I want to emulate the clock at the time of recording I use the --clock option along with the use_sim_time=true parameter http:...
user avatar
0 votes
1 answer
4 views

clock model not displayed in gazebo

Hi everyone, I was going through gazebo tutorial at : http://ros.org/wiki/simulator_gazebo/Tutorials , when I launch empty world I didn't see clock model, only gplane and point_white is being shown. I ...
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
2 answers
6 views

Clock - How to change it?

Hi, I've been trying to work in simulation from massages that I have already recorded in a bag file, but I allways get warn messages saying that it is not possible to use the data because it is too ...
user avatar
0 votes
1 answer
6 views

simulating sensor data, problem with rosbag and clock

Hello I wrote a simple simulator that generates sensor data (ideal values plus some noise). My goal is to test my localization algorithms (EKF). It seems to work, but I am having problems with ...
user avatar
0 votes
1 answer
4 views

Process blocking when using rosbags and rate sleep

Hi ! I'm launching a rosbag file from a launch. At the start of the launch I have: <param name="/use_sim_time" value="True"/> then I ...
user avatar
0 votes
1 answer
6 views

Is it safe to change system date/time during execution

Reading on how ros Time is implemented, it looks like it uses system wall-time. http://www.ros.org/wiki/Clock Would it be safe to change system time when ros nodes are running? We plan to synchronize ...
user avatar