ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

wlsdx's profile - activity

2020-12-18 16:39:00 -0500 marked best answer RViz show /cloud in xx.bag with outside /tf

Hi, I want to display the /cloud in a bag file with an outside /tf topic. The frame_id of the cloud message is "laser". /tf describes a rotation of "laser" around the y axis of "base_link". "base_link" is designed to be the fixed frame.

In RViz, either /tf or /cloud can be displayed correctly alone. But when running tf node along with xx.bag and setting the fixed frame to be "base_link", only the tf movement is displayed. I've tried setting the fixed frame to be "laser". The cloud and tf can be displayed in that case, but it's different from what is designed.

When the fixed frame is "base_link", there's an error in transform:

Transform [sender=unknown_publisher]

For frame [laser]:No transform to fixed frame [base_link]. TF error:[Lookup would require extrapolation into the future. Requested time 1562899456.147298211 but the latest data is at time 0.000000000, when looking up transform from frame [laser] to frame [base_link]]

The param use_sim_time was set to be true. And the bag file was played in rosbag play --clock xx.bag. But the error didn't change. The time stamp I use in tf is rospy.Time(0)

It seems like a problem of time, but when the fixed frame is "laser", tf and cloud can be displayed simultaneously. What's the problem here? Thanks for any help.

2020-03-11 06:56:59 -0500 received badge  Famous Question (source)
2020-01-01 05:03:24 -0500 received badge  Notable Question (source)
2020-01-01 05:03:24 -0500 received badge  Popular Question (source)
2019-07-25 09:23:39 -0500 edited answer RViz show /cloud in xx.bag with outside /tf

It's a silly problem. The time stamp I used for every tf msg was rospy.Time(0). It should be rospy.get_rostime().

2019-07-25 09:23:16 -0500 answered a question RViz show /cloud in xx.bag with outside /tf

It's a silly problem. The time stamp of every tf msg was rospy.Time(0). It should be rospy.get_rostime().

2019-07-23 19:54:05 -0500 edited question RViz show /cloud in xx.bag with outside /tf

RViz show /cloud in xx.bag with outside /tf Hi, I want to display the /cloud in a bag file with an outside /tf topic. Th

2019-07-23 19:53:40 -0500 received badge  Famous Question (source)
2019-07-22 04:08:04 -0500 received badge  Enthusiast
2019-07-21 11:33:14 -0500 received badge  Notable Question (source)
2019-07-21 11:33:14 -0500 received badge  Popular Question (source)
2019-07-20 23:16:30 -0500 asked a question RViz show /cloud in xx.bag with outside /tf

RViz show /cloud in xx.bag with outside /tf Hi, I want to display the /cloud in a bag file with an outside /tf topic. Th

2019-07-15 06:31:31 -0500 commented question serial available() returns false

Thanks. A motor is attached to the USB port. It needs a command to run. The command is a long string and has been tested

2019-07-15 04:14:58 -0500 edited question serial available() returns false

serial available() returns false Hi, I'm trying using serial to send information to a serial port. The following is my

2019-07-15 03:36:16 -0500 commented question serial available() returns false

Thanks. I've corrected the title.

2019-07-15 03:21:51 -0500 edited question serial available() returns false

serial available() returns false Hi, I'm trying using serial to send information to a serial port. The following is my

2019-07-15 03:21:51 -0500 received badge  Editor (source)
2019-07-15 03:21:34 -0500 edited question serial available() returns false

rosserial available() returns false Hi, I'm trying using rosserial to send information to a serial port. The following

2019-07-15 02:41:58 -0500 asked a question serial available() returns false

rosserial available() returns false Hi, I'm trying using rosserial to send information to a serial port. The following