Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [time]

The tag has no usage guidance.

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

Is there a more elegant way to get the time in seconds in a ROS 2 node? (taken over from ROS Answers)

While I was looking for a way to convert an rclpy.Duration object to it's equivalent in seconds, I came across this OP from ROS-Answers: https://answers.ros.org/...
shri_ram's user avatar
0 votes
0 answers
5 views

How to add a topic to rosbag without changing its topic Hz using Python?

I have a rosbag with 4 topics. I want to create a new rosbag with 2 additional topics with same Hz as extisting. I tried to read all topics in a loop using python and added 2 more topics. Problem is, ...
Sai Puneeth's user avatar
0 votes
1 answer
189 views

rclcpp::Time epochs

I would like to get seconds, and nanoseconds from inside my node, so I have a timer_callback that executes each 100ms, to note seconds and nanoseconds of the rclcpp::Time ...
Can Altineller's user avatar
0 votes
1 answer
2 views

Get used time for planning path

Hi! Is there a python command of the moveit_commander lib to get the used (!) planning time for the last planning? Perhaps the time is also stored in the result of the "plan" command? At the ...
user avatar
0 votes
1 answer
5 views

realtime joystick end effector control

i use joystick to move robotic arm in rviz then i press "plan" and "execute", then real arm moving. how can i make that action without "plan" and "execute". i ...
user avatar
0 votes
1 answer
76 views

Get timestamp of current message starting from zero in rospy

I seem to have a misunderstanding regarding time in ros, especially sim-time. Aim I process a rosbag that contains many pointcloud2s and want to transform the timestamps of the incoming pointcloud to ...
user avatar
0 votes
2 answers
53 views

TF_REPEATED_DATA error with robot_localization ukf package

Running ROS Noetic. I am receiving the following error on transforms published by UKF node from robot localization: Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame ...
user avatar
0 votes
1 answer
50 views

[ROS2] Why rclcpp node now() function returns 0 in node construtor?

I'm calling client now function while constructing the node, but this value is still zero: now().seconds(); // 0 always (only in constructor) for some reason Is it ...
user avatar
0 votes
2 answers
388 views

Convert ros time to hours-minutes-seconds string in system timezone in C++?

I want to convert ros time stamps out of message headers to std::string in a form like YYYY MM DD HH MM SS.SSS or similar. Optionally not including the year or month or day would be nice. An example ...
Lucas Walter's user avatar
  • 3,347
0 votes
1 answer
100 views

Syncing time between two machines

Hello, I have two machines, one is a master(running roscore) and the second is a slave. Until now I set manually the time for each computer. Now, I want to do set ...
user avatar
0 votes
1 answer
4 views

tf error while doing mapping

Hello everyone , im doing gmapping and i got following errors while launching my file Transform [sender=unknown_publisher] For frame [/odom]: No transform to fixed frame [base_link]. TF error: [Lookup ...
user avatar
0 votes
1 answer
2 views

What time should i use for ros messages?

This is a general question about ROS messages, but for the sake of the question i will use point clouds. Lets say my lidar obtains a point cloud at time t=0 sec. Now i do some processing on the point ...
user avatar
0 votes
1 answer
63 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
2 views

can't synchronize Velodyne points with other PointCloud2 data

Hi, I am new to ROS and I need a help for time synchronization. When I synchronize Velodyne points with ZED Images, they are synchronized without any problem (I attached this working code below). But, ...
user avatar
0 votes
1 answer
29 views

rospy.Time.now() returns 0

#! /usr/bin/env python import rospy rospy.init_node('h') print(rospy.Time.now()) => 0 Prints zero? Here is the context Kinetic rosparam get /use_sim_time -&...
pitosalas's user avatar
  • 465
0 votes
1 answer
27 views

Serial Connection to Hokuyo from Master

Hi, I am currently getting the error: ...
user avatar
0 votes
1 answer
7 views

ROS time synchronization in isolated local network

Hello everyone, My robot consists of three processing units (master, slave1, slave2) connected via an ethernet switch. They form an isolated network so there is no internet connection. For time ...
user avatar
0 votes
1 answer
253 views

ROS 2 time handling

In ROS 1 my node has code like this in a subscribed message callback: ...
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
2 views

Rate time of ROS code

Hi, is there a way to see how much time my code is taking to run? I don't mean elapsed time but the rate it is working. For example, I have three topics being published and one subscriber and I want ...
user avatar
0 votes
1 answer
4 views

Message Filters Time Sequencer not compiling - Roscpp

I'm trying to utilize the ROS Indigo message_filters::TimeSequencer library to delay messages coming in from a certain topic and republishing them onto a new topic. ...
user avatar
0 votes
1 answer
5 views

Fix time step in generated MoveIt trajectories

I currently am trying to integrate MoveIt on a custom robot. The robot already has the capability to accept position-velocity trajectories which are defined over a fixed control rate (i.e t1-t0 = t2-...
user avatar
0 votes
1 answer
61 views

Is there an easy way to publish std_msgs::Time from cli?

I'd like to publish the current ROS time to a topic from the command line. Is there some way to achieve this? EDIT: Focusing my question a bit more-- I'd like to publish the equivalent of ros::Time::...
user avatar
0 votes
1 answer
34 views

How to read the actual date in ROS

Hey!, I would like to name some archives, which I create in a ROS node, with a string related to the actual date on which the node is called. I already have used Ros time, but I dont know what does ...
user avatar
0 votes
1 answer
1 view

One time publish executable

Hi, Im trying to use a specific node (program A) as a test program being executed once taking the value to be published on a topic (lets call it "foo"). Program B is already subscribed to ...
user avatar
0 votes
1 answer
42 views

ros::Time between samples

Hi, I am trying to calculate time difference between data in consecutive sensor messages through the subscriber callbacks. For example: I subscribe to sensor_msgs::Imu for the imu data. I get 5 ...
user avatar
0 votes
1 answer
5 views

How to change different topics pace in rosbag?

I have 2 topics (A and B) in rosbag. but they are not synchrinized, A is 10s ahead of B. So I want to create a new rosbag and make A 10s delay to synchronize with B. How should I do that ? should I ...
user avatar
0 votes
4 answers
33 views

Get timestamp during roslaunch

Hi ROS community! Is there a way to get the date/time to pass on as a (string) parameter, when roslaunching a node? The idea is to pass a filename as parameter to a node, which will have a specific ...
user avatar
0 votes
1 answer
1 view

How to get laser points in a specific time of a bag

I have some code that get the messages and break after there is something inside, but laser ranges data change every time I execute my code. This happens probably cause I get the msg in different ...
user avatar
0 votes
1 answer
3 views

Publish at the time of a vector

Dears, I have a vector containing double type numbers representing the ros time that I recorded from a previous simulation. I need to publish data of a node at this given time. I try to explain better:...
user avatar
1 vote
2 answers
39 views

Conversion from ROS timestamp to ISO-8601 time format

I would like to convert a ROS timestamp like this: ros::Time stamp = ros::Time::now(); to string in ISO-8601 format. The best resource I was able to google up so ...
user avatar
0 votes
1 answer
15 views

amcl jumped very much with debug infomation "Time jumped forward by [...] for timer of period [...] ...."

Hello, I use robot_pose_ekf to fuse odom and imu to get a more accurate tf(from odom to base_footprint),and then let amcl use this tf to provide a tf(...
user avatar
0 votes
1 answer
191 views

time from ros::time(0) to ros::time::now()

Hello, I have a trajectory that goes from 0s to 20s and i want to test it with ROS. if i use start_time=ros::time(0); end_time=20; (seconds) would ...
user avatar
0 votes
1 answer
10 views

While using message_filters to do the time synchronization,but it cannot enter into the callback function

I am using sync_policies::ApproximateTime in message_filter to do the PointCloud2 and LaserScan time synchronization, but the problem is it cannot enter into the callback function of...
user avatar
0 votes
1 answer
10 views

Use simulated time with some nodes while running other nodes with wall time

Hi I am trying to run some nodes with simulated time while running other nodes with wall time (same rosmaster). I used the following launch configuration. ...
user avatar
0 votes
1 answer
1 view

How to build two packages at the same time

I use ros jade and want to run ar_sys package. However, this is not available for jade version. So i get it from github. In case to work, the ar_sys needs the uvc_cam package. Every time i do make and ...
user avatar
0 votes
1 answer
14 views

why rospy time always prining zero?

I need a time while running the simulation, but in my code returns zero time. print rospy.get_time(); #output 0 print rospy.Time.now(); #output 0.0 but i see the time in terminal when i run ...
user avatar
0 votes
1 answer
8 views

tf2::ExtrapolationException, transforming point clouds from the past using a new transform

I want to put two pointclouds in a single frame that are taken from two different locations. The pointclouds are taken in the /base_link frame (which moves between scans), the position of the marker ...
user avatar
0 votes
1 answer
3 views

tf_echo can find transform but waitForTransform can't

For some reason, listening to the transforms between robot_center and laser_link from the network does not work anymore. In my Python script, I do: ...
user avatar
0 votes
1 answer
17 views

Rosbag and timestamp received vs timestamp published

I can't find it anymore but I seem to recall reading somewhere that when you record a rosbag, the timestamp encoded to the message is the time at which the message was received by the rosbag record ...
user avatar
0 votes
1 answer
8 views

TimeSynchronizer compilation error

Hi, I am trying to implement a simple approximate time synchronizer that synchronizes two topics, Imu data and a twist message from an xbox controller I have not even departed from the structure of ...
user avatar
0 votes
1 answer
4 views

rqt_publisher genpy.Time[0]

How i can publish a msg with rqt_publisher with current time added to the stamp in a msg? Originally posted by Porti77 on ROS Answers with karma: 183 on 2016-02-18 Post score: 1
user avatar
0 votes
1 answer
78 views

Converting ros::time to double value without uint_t

I had a look at the ros::durationBase and it has functions toSec toNsec to convert the following into one int64_t which would exceed a double in c++; ...
user avatar
0 votes
1 answer
4 views

Receiving before sending?

I am a ROS noobie, so bare with me. I've just implemented the "talker.py" and "listener.py" example in the very helpful ROS tutorial pages. Out of curiosity, I modified my listener....
user avatar
0 votes
1 answer
34 views

Can't publish or use time in my class constructor

I am creating a class that subscribes to an Odometry message and in the corresponding callback function updates an OccupancyGrid message which is published to a topic. I've got all this working just ...
user avatar
0 votes
1 answer
1 view

publishing data one after the other with constant time

Hello, I would like to publish data from the XML file using pugixml.I need to make the publication (content) one by one with constant time.For example after the publication of first data,it has to ...
user avatar
0 votes
1 answer
1 view

How can I check the time response of my model in Gazebo?

Hi Ros users! I would like to know the time response of my model P3DX in Gazebo. I am going to explain it: I am using ROS indigo, Gazebo2 and linux 14.04. I have a model P3DX (ua_p3dx_pkg). When I ...
user avatar
0 votes
1 answer
21 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
23 views

Playback of rosbag file at the same rate that messages are stored in rospy

Hi, I am trying to playback data that I have stored using rosbag in rospy. Is it possible to playback the rosbag file in rospy at the same rate that it is recorded? I know that I can do this from the ...
user avatar
0 votes
1 answer
12 views

Extract time from .bag file

Hi, I am trying to process some bag files and, while I am able to get the timestamp for each message, I am not able to get the actual time the message was received. Is it possible to get it? I am ...
user avatar