Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to Ensure Consistent Reference Frames for Comparing Odometer and Camera Angle Data in ROS Noetic?

In my ROS Noetic project of a vehicle with a camera and odometer, I'm planning to compare the vehicle's position from the odometer with the desired angle or direction detected by the camera. However, ...
Donnovan Trejo's user avatar
0 votes
1 answer
72 views

TF get the time of last transform

Hello! I want to check if the tf2_ros::Buffer received a valid transform from A to B in the last x seconds (to throw an error in case of time out). So something like ...
user avatar
0 votes
1 answer
64 views

tf not found using python in ros noetic

Hi I have followed the tutorial here to find a transformation between 2 frames using Python in ROS Noetic, but I can't get it even though I'm sure the tf exists because I can find it in the terminal. ...
user avatar
0 votes
2 answers
132 views

tf2_ros lookup_transform giving wrong transformation

Hello everyone, I want to get the transform from tool0 frame to base_link frame of the UR3 robot but I'm having problems. Below ...
Diego Carvajal's user avatar
0 votes
1 answer
56 views

need to get tf2_ros to work in python3 environment for Melodic

I need tf2 to work in python3 environment in ROS melodic. I saw a similar question here for ROS kinetic, I need the same thing for melodic. Please help. Originally posted by distro on ROS Answers ...
user avatar
0 votes
1 answer
658 views

ros2 lookupTransform() to get latest transform

Hello all, In foxy tf2_ros::Buffer::lookupTransform(), ...
user avatar
0 votes
1 answer
63 views

creating the map with only Lidar

I am using, ROS Noetic + 20.04. Lidar hardware: rplidar_a3m1 I installed slam_toolbox ...
user avatar
0 votes
1 answer
180 views

[ROS2 Foxy] loading static transform broadcaster arguments from config file

In one of my launch files I have a number of tf2 static transform publisher calls like ...
user avatar
0 votes
1 answer
89 views

TransformListener x10 higher CPU load in rclpy than rclpp

System info Operating System: Docker + Ubuntu 20.04, 10th gen i7 Docker + Ubuntu 20.04, jetson AGX Xavier ROS2 Version: Foxy binaries Steps to reproduce issue Make sure the system is publishing ...
user avatar
0 votes
1 answer
25 views

Segmentation fault on tf2_ros

I am using slam_toolbox with arm64 architecture. But I encount SIGSEGV. How do I fix this error? backtrace: ...
user avatar
0 votes
1 answer
77 views

Get valid frames from `tf2_ros.Buffer` based on `cache_time`

tf2_ros.Buffer offers a cache_time argument in both C++ and Python implementations. C++ doc Python code However, on calling ...
user avatar
0 votes
1 answer
68 views

tf2_ros: AttributeError: 'Buffer' object has no attribute 'destroy_subscription'

Hi there, I'm new to ROS and am working through all the tutorials. Right now, I'm working on the tf2 package's tutorials; however, I'm getting stuck on writing a tf2 listener (see: http://wiki.ros.org/...
user avatar
0 votes
1 answer
15 views

ROS2 Eloquent TF listener (tf_echo) values freeze/resume on a cycle unexpectedly

Ubuntu 18.04 ROS2 Eloquent TF C++ ###My pipeline: I have a robot which uses sensors to detect the rotation, extension of its joints. It has revolute, prismatic, and fixed joints in a URDF file. Yes, ...
user avatar
0 votes
2 answers
90 views

tf2_ros::Buffer.transform() missing timestamp

Hello everyone I use tf2_ros::Buffer.transform() to transform a geometry_msgs::WrenchStamped into a...
user avatar
0 votes
2 answers
208 views

[ROS2] tf2 broadcaster

Hello, I'm currently working on a differential drive robot with ROS2 and encountering some errors with a rclcpp transform broadcaster. I hope i can get some answers as to what I am doing wrong. I'm ...
user avatar
0 votes
1 answer
145 views

Using python modules from ROS2 packages

Hi, I am using ROS2 dashing and I want to work with the geometry2/tf2_ros package which is available at https://index.ros.org/p/tf2_ros/#dashing. I am sure this is a very basic question, but I am ...
user avatar
0 votes
1 answer
52 views

Configuring TF tree for a system that inherently uses NED (North-East-Down) convention?

I know how to perform transforms between an ENU and NED frame (a simple static flip) but my question here is more of how do I configure the TF tree if the existing codebase assumes everything as NED (...
user avatar
0 votes
1 answer
64 views

TF2 ConnectivityException With Connected TF Tree

I'm getting the following error about missing frames, but when I view the TF tree, it shows as a single connected tree. The same error occurs no matter which two frames I use. I don't have enough ...
user avatar
0 votes
2 answers
59 views

[ROS2]Are there any examples of tf2 broadcast or listener

Hello comrades, I`m just trying to get odometry from t265 from realsense2_lib examples. After compiling and running this code below, I get that target frame does not exist. Thanks in advance. ...
user avatar
0 votes
1 answer
4 views

Support for ROS2 Dashing along with python3

I have built the geometry library for my project using colcon for ROS2 Dashing and Python 3 and sourced it using ...
user avatar
0 votes
1 answer
133 views

Could not find waitForTransform() function in TF2 package of ROS2

We are working on laser_filters package porting to ROS2 in that waitForTransform() method is used but I could not find similar method in ROS2 crystal/bouncy. Originally posted by vandanamandlik on ...
user avatar
0 votes
1 answer
17 views

How to migrate tf data types such as Quaternion, Vector3, Transform to tf2?

There is not much mentioned about tf2 datatypes on tf2_ros documentation at http://docs.ros.org/latest/api/tf2_ros/html/c++/. While comparing to http://docs.ros.org/latest/api/tf/html/c++/, we don't ...
user avatar
0 votes
1 answer
15 views

Is there an easy way to publish a static transform between leaves of two tf2 trees?

This is similar to the question: https://answers.ros.org/question/58639/what-is-the-correct-way-to-connect-two-tf-trees/ That was five years ago. Can we do better today? Given a tree: ...
user avatar
0 votes
1 answer
11 views

tf2 Documentation Needs Work

As we get ramped up on our own ROS environment, we've found the tf2 implementation extremely hard to understand. So this is a bit of a plea for folks who understand it well, to improve the tutorials, ...
user avatar
0 votes
1 answer
51 views

TF2 how to translate vector in Python?

Hi everyone, I think I'm experiencing a severe blackout right now... A short one: in Python, how do I translate a 3D vector (a numpy array) from one TF2 frame to another considering position and ...
user avatar
0 votes
1 answer
46 views

class construction error when using tf2_ros::Buffer

Hi all, I am trying to use tf2_ros::Buffer in a simple code. When I put it in the main function, everything works fine. But when put in a class, building error occurs. The code is like this: ...
user avatar
0 votes
2 answers
269 views

transform pointcloud with tf2

Hello, I have two tf2 frames in ROS "World" and "Robot" the world is on position 0, 0, 0 and the Robot is on different position, it is a moving robot, but for now let say he is on ...
user avatar
0 votes
1 answer
47 views

How can I access all static TF2 transforms?

I have two nodes who each publish a single static TF2 transform (each with a different child frame) via tf2_ros.StaticTransformBroadcaster.sendTransform upon startup. These are essentially ...
user avatar
0 votes
2 answers
3 views

import tf2/StaticTransformPublisher in Python

I'm following this tutorial[1] and having trouble with importing. [1] http://wiki.ros.org/tf2/Tutorials/Writing%20a%20tf2%20static%20broadcaster%20(Python) ...
DLu's user avatar
  • 4,294
0 votes
2 answers
231 views

tf2_ros buffer transform PointStamped?

I'd like to transform a PointStamped using a python tf2_ros.Buffer, but so far I'm only getting type exceptions. The following ...
Lucas Walter's user avatar
  • 3,397
0 votes
1 answer
30 views

TF Listener for static transforms exclusively

Is there a way to listen to only the static transforms in a TF tree (e.g. base_link --> base_laser_link) without instantiating an entire ...
user avatar
0 votes
1 answer
11 views

Is there a max number of edges allowed between two frames in a TF tree?

I have a pose graph of about 2000 nodes published as static transforms with tf2_ros::StaticTransformBroadcaster. Currently, the poses are chained together as a path,...
Jacob Perron's user avatar
0 votes
1 answer
19 views

tf2 stamped datatypes tutorial fails to build

I'm trying to walk through the tf2 tutorials following the instructions here: http://wiki.ros.org/tf2/Tutorials/Using%20stamped%20datatypes%20with%20tf2%3A%3AMessageFilter Trying to build the source ...
user avatar
0 votes
1 answer
12 views

How to substitute TF2 prefix

Hi, I have seen that tf_prefix support is deprecated in TF2. What is the proper way now of having the same functionality? That is, I have two robots, robot1 and robot2, and I want the TF frames to ...
user avatar
0 votes
1 answer
50 views

tf2 tutorial writing broadcaster -- compile error

Hi, I'm following the tutorial at http://wiki.ros.org/tf2/Tutorials/Writing%20a%20tf2%20broadcaster%20%28C%2B%2B%29 I copy-and-pasted the code, made changes to CMakeLists.txt, but I see this error ...
user avatar
0 votes
1 answer
117 views

TF_OLD_DATA ignoring data from the past for frame openni_depth_optical_frame

Hi, I need to play my bagfile with the -l loop parameter. However after the time is reset, I get a lot of these errors: ...
user avatar
0 votes
1 answer
46 views

tf2, thread, setUsingDedicatedThread, timeout

I'm migrating part of my code to tf2. Big chunk of my code is library that can run online or offline, so I pass at construction time a reference to a tf2_ros::Buffer object. It is then used to lookup ...
user avatar
0 votes
1 answer
55 views

Again a Migration Question From TF to TF2

Hi all, at first, I am sorry if this question might be a duplicate, however I didn't find a clear answer while searching this forum. So I decided to migrate my code from TF to TF2. I encountered lots ...
user avatar
0 votes
1 answer
73 views

tf2 buffer_server timeout and buffer size

I'm starting the buffer_server with rosrun tf2_ros buffer_server I've seen in its source code on github that one can specify the buffer size through the parameter ...
user avatar
0 votes
1 answer
8 views

Error tf2_ros StaticTransformBroadcaster API in Python

Update: In an attempt to get around losing the ability to pub latch transforms in the API in python I have tried doing the following which does not seem to work. Anyone have a way to do this? And in ...
user avatar
0 votes
1 answer
16 views

Is there a good tf2 tutorial?

Hi there, Trying to use tf2 with hydro here, however I just can't get the tutorials to work. For the broadcaster, the C++ tutorial is missing. For the listener, there is a structure that seems to be ...
user avatar
0 votes
2 answers
132 views

tf transformPoint() equivalent on tf2?

It used to be that, with tf, we would use a TransformListener and its transformDATA() methods, e.g. ...
user avatar
0 votes
1 answer
2 views

tf to tf2 SendTransform type error

I am working on some forked code that is setup for tf and on my BeagleBone Black I only have tf2. I have most of the code working but it is erroring out on sendtransform with TypeError: sendTransform()...
user avatar
0 votes
2 answers
10 views

Why cant initialize tf2_ros::TransformListenter in hydro?

When I try to compile node with folowing lines (this is only a part of code): ...
Dr. Denis's user avatar
  • 588
0 votes
1 answer
2 views

Groovy Installation - "Failed to process package 'tf2_ros'" in "catkin_make_isolated" - MacBook OSX

After resolving the dependencies in the installation of groovy on a MacBook Pro with OS 10.8.3, I input the command ./src/catkin/bin/catkin_make_isolated --install ...
user avatar
0 votes
1 answer
1 view

Issue building tf2_ros on OSX

I'm running into this problem while trying to build tf2_ros on OSX: ==> make -j4 -l4 in '/Users/Yeison/ros_catkin_ws/build_isolated/tf2_ros' Linking CXX shared library /Users/Yeison/ros_catkin_ws/...
user avatar