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

pauljurczak's profile - activity

2021-08-30 05:02:19 -0500 received badge  Great Answer (source)
2021-02-28 01:04:55 -0500 received badge  Good Answer (source)
2021-02-19 15:46:17 -0500 received badge  Famous Question (source)
2021-02-19 15:46:17 -0500 received badge  Notable Question (source)
2021-02-19 15:46:17 -0500 received badge  Popular Question (source)
2021-02-12 03:31:03 -0500 received badge  Famous Question (source)
2021-01-28 13:09:27 -0500 received badge  Nice Answer (source)
2020-10-06 04:56:26 -0500 received badge  Famous Question (source)
2020-08-04 09:07:19 -0500 received badge  Famous Question (source)
2020-07-27 05:29:53 -0500 received badge  Famous Question (source)
2020-05-25 16:48:21 -0500 received badge  Notable Question (source)
2020-05-17 00:41:00 -0500 edited question Compilation errors with ROS Melodic on Ubuntu 18.04 and gcc-10

Compilation errors with ROS Melodic on Ubuntu 18.04 and gcc-10 I have roscppproject using ROS Melodic on Ubuntu 18.04. I

2020-05-17 00:28:38 -0500 asked a question Compilation errors with ROS Melodic on Ubuntu 18.04 and gcc-10

Compilation errors with ROS Melodic on Ubuntu 18.04 and gcc-10 I have roscppproject using ROS Melodic on Ubuntu 18.04. I

2020-05-07 08:08:48 -0500 received badge  Notable Question (source)
2020-05-05 04:36:09 -0500 received badge  Notable Question (source)
2020-04-20 03:35:08 -0500 received badge  Notable Question (source)
2020-03-25 06:09:19 -0500 received badge  Popular Question (source)
2020-03-25 04:01:27 -0500 commented answer How to transform Vector3 with tf::Transform?

Is there a tf equivalent of tf2::doTransform? I'm having some issues with tf2.

2020-03-25 02:54:50 -0500 edited question How to transform Vector3 with tf::Transform?

How to transform Vector3 with tf::Transform? I have a position Vector3 pWorld in WORLD coordinate system and I have a tf

2020-03-25 02:38:18 -0500 asked a question How to transform Vector3 with tf::Transform?

How to transform Vector3 with tf::Transform? I have a position Vector3 pWorld in WORLD coordinate system and I have a tf

2020-03-22 01:23:41 -0500 marked best answer Which constructor of tf2_ros::TransformListener should I use?

There are two constructors of tf2_ros::TransformListener:

  1. TransformListener(tf2::BufferCore& buffer, const ros::NodeHandle& nh, bool spin_thread)

  2. TransformListener(tf2::BufferCore& buffer, bool spin_thread)

It seems that nh parameter in the first one is ignored, so they are equivalent. Is it accurate?

2020-03-21 22:11:58 -0500 received badge  Popular Question (source)
2020-03-20 20:54:19 -0500 marked best answer How to get a specific latest transform from lookupTransform

I'm using tf2_ros::TransformListener listening on /tf topic, which contains various target_frame and source_frame pairs. I want to extract only a specific pair, say IMU and TURTLE. That pair is published at 250Hz according to rqt.

When I call: buffer.lookupTransform("IMU", "TURTLE", ros::Time(0)) I get "IMU" passed to lookupTransform argument target_frame does not exist exception most of the time, but occasionally a good result.

When I call: buffer.lookupTransform("IMU", "TURTLE", ros::Time::now()) or buffer.lookupTransform("IMU", "TURTLE", ros::Time::now()-ros::Duration(0.1)) I get Lookup would require extrapolation into the future... or Lookup would require extrapolation into the past...

What is a reliable way to retrieve the most current transform with given target_frame and source_frame?

EDIT

The issue was caused by simulation startup delay. waitForTransform() as suggested in the answer below is the solution to my problem. Even better is its newer incarnation: tf2_ros::Buffer::canTransform().

2020-03-20 20:54:19 -0500 received badge  Scholar (source)
2020-03-20 16:51:46 -0500 edited question How to get a specific latest transform from lookupTransform

How to get a specific latest transform from lookupTransform I'm using tf2_ros::TransformListener listening on /tf topic,

2020-03-20 16:37:04 -0500 edited question How to get a specific latest transform from lookupTransform

How to get a specific latest transform from lookupTransform I'm using tf2_ros::TransformListener listening on /tf topic,

2020-03-20 04:51:27 -0500 edited question How to get a specific latest transform from lookupTransform

How to get a specific latest transform from lookupTransform I'm using tf2_ros::TransformListener listening on /tf topic,

2020-03-20 04:50:14 -0500 asked a question How to get a specific latest transform from lookupTransform

How to get a specific latest transform from lookupTransform I'm using tf2_ros::TransformListener listening on /tf topic,

2020-03-19 15:58:04 -0500 received badge  Popular Question (source)
2020-03-19 03:56:50 -0500 edited question Which constructor of tf2_ros::TransformListener should I use?

Which constructor of tf2_ros::TransformListener should I use? There are two constructors of tf2_ros::TransformListener:

2020-03-19 03:25:08 -0500 asked a question Which constructor of tf2_ros::TransformListener should I use?

Which constructor of tf2_ros::TransformListener should I use? There are two constructors of tf2_ros::TransformListener:

2020-03-19 01:50:29 -0500 edited question How to subscribe to subset of /tf messages with given frame_id?

How to subscribe to subset of /tf messages with given frame_id? In my simulation environment /tf topic publishes tf2_msg

2020-03-19 01:49:08 -0500 edited question How to subscribe to subset of /tf messages with given frame_id?

How to subscribe to subset of /tf messages with given frame_id In my simulation environment /tf topic contains tf2_msgs/

2020-03-19 01:48:53 -0500 asked a question How to subscribe to subset of /tf messages with given frame_id?

How to subscribe to subset of /tf messages with given frame_id In my simulation environment /tf topic contains tf2_msgs/

2020-03-13 06:47:27 -0500 received badge  Necromancer (source)
2020-03-13 06:47:27 -0500 received badge  Teacher (source)
2020-03-11 09:50:46 -0500 received badge  Popular Question (source)
2020-03-11 00:17:18 -0500 commented answer Inconsistent plot vs numerical data display in rqt_bag

PlotJuggler does indeed show complete data in my case.

2020-03-10 23:56:10 -0500 edited question Inconsistent plot vs numerical data display in rqt_bag

Inconsistent plot vs numerical data display in rqt I'm running ROS Melodic on Ubuntu 18.04. When I visualize a rosbag wi

2020-03-09 17:46:50 -0500 commented question Inconsistent plot vs numerical data display in rqt_bag

@gvdhoorn Sorry for the delay, I didn't see your comment. BTW, when I leave Firefox tab with my question open, Asked: 46

2020-03-09 17:41:54 -0500 edited question Inconsistent plot vs numerical data display in rqt_bag

Inconsistent plot vs numerical data display in rqt I'm running ROS Melodic on Ubuntu 18.04. When I visualize a rosbag wi

2020-03-09 17:41:54 -0500 received badge  Editor (source)
2020-03-07 19:00:23 -0500 asked a question Inconsistent plot vs numerical data display in rqt_bag

Inconsistent plot vs numerical data display in rqt I'm running ROS Melodic on Ubuntu 18.04. When I visualize a rosbag wi

2019-12-13 19:43:36 -0500 answered a question When should I use rviz, rqt or gazebo?

One argument for using rviz is it's visualization of laser scans, which is absent in rqt as of the end of 2019.

2019-11-13 03:23:55 -0500 commented answer ROS_INFO_STREAM

@gvdhoom That would be too much typing ;-) I just edited that page - have a look.

2019-11-13 03:21:02 -0500 received badge  Notable Question (source)
2019-11-12 19:53:44 -0500 commented answer ROS_INFO_STREAM

@Delb It took me a while to understand what you meant. It is certainly beyond any search engine capability. I'm going to

2019-11-12 01:13:38 -0500 edited answer ROS_INFO_STREAM

ROS_INFO macro accepts C-style printf formatting parameters as in this example from "Mastering ROS'": ROS_INFO("From C

2019-11-11 03:40:47 -0500 received badge  Popular Question (source)
2019-11-11 01:50:54 -0500 commented question What is an effective way to find documentation for ROS packages?

@gvdhoom - -> _: thank you for the tip!