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

kunaltyagi's profile - activity

2023-06-28 01:13:29 -0500 marked best answer 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.

However, on calling the buffer.all_frames_as_yaml(), the frames including those outside the cache time are included. Is there a way to clear the cache periodically or to filter the "stale" frames without having to read the YAML/string for the field: most_recent_transform and then convert it into a number (which also results in a loss of precision)?

PS: My understanding of cache_time might be wrong, so I'll rephrase my question for clarity: How do I

  • Get only frames with a TF within the cache_time provided to the tf2_ros.Buffer OR
  • Clear the expired cache of tf2_ros.Buffer in Python (there's a clear function, but like in C++, it clears the entire cache)
2022-06-30 02:03:15 -0500 received badge  Famous Question (source)
2022-03-23 20:47:46 -0500 asked a question How to provide log limit for colcon

How to provide log limit for colcon The output of colcon looks like: #46 432.0 -- Installing: /opt/ros/noetic/pcl_co #4

2022-01-17 18:16:35 -0500 received badge  Famous Question (source)
2022-01-17 18:16:35 -0500 received badge  Notable Question (source)
2022-01-17 18:16:35 -0500 received badge  Popular Question (source)
2021-02-15 01:36:29 -0500 asked a question Get valid frames from `tf2_ros.Buffer` based on `cache_time`

Get valid frames from `tf2_ros.Buffer` based on `cache_time` tf2_ros.Buffer offers a cache_time argument in both C++ and

2019-09-26 11:05:06 -0500 received badge  Famous Question (source)
2019-09-26 11:05:06 -0500 received badge  Notable Question (source)
2019-09-26 11:05:06 -0500 received badge  Popular Question (source)
2019-05-28 02:17:12 -0500 received badge  Famous Question (source)
2019-02-17 12:26:20 -0500 received badge  Famous Question (source)
2019-02-17 12:26:20 -0500 received badge  Notable Question (source)
2018-07-04 03:19:42 -0500 commented question [C++/CLI] Type conversion for rosparams in ROS 1

@PeteBlackerThe3rd I didn't consider that at all. Thanks for reminding me about this. I went with this and also found a

2018-07-04 03:18:17 -0500 commented question [C++/CLI] Type conversion for rosparams in ROS 1

@PeteI didn't consider that at all. Thanks for reminding me about this.

2018-06-27 01:51:13 -0500 commented question How to send Video Stream over network and convert to Image_raw topic.

Did you try writing a client for your stream to convert image to cv::Mat and then use cvBridge to publish the images? Th

2018-06-27 01:46:16 -0500 received badge  Notable Question (source)
2018-06-27 01:39:04 -0500 answered a question Kill and relaunch .launch file from bash script

Generic answer: Simply put respawn="true" in the node parameter list and modify other nodes to handle the offending nod

2018-06-27 01:29:30 -0500 commented question [C++/CLI] Type conversion for rosparams in ROS 1

@jayess That question doesn't help because the issue lies in the way node parameter assignment is done during remapping

2018-06-27 01:26:56 -0500 edited question [C++/CLI] Type conversion for rosparams in ROS 1

[C++/CLI] Type conversion for rosparams in ROS 1 Note: I'm not using launch files (I should, but I'm not) $ rosrun pkg

2018-06-27 00:06:16 -0500 edited question [C++/CLI] Type conversion for rosparams in ROS 1

[C++/CLI] Type conversion for rosparams in ROS 1 Note: I'm not using launch files (I should, but I'm not) $ rosrun pkg

2018-06-26 22:09:28 -0500 received badge  Popular Question (source)
2018-06-26 20:20:19 -0500 commented question [C++/CLI] Type conversion for rosparams in ROS 1

Creating a launch file when the parameter changes frequently is a little bothersome

2018-06-26 19:33:34 -0500 edited question [C++/CLI] Type conversion for rosparams in ROS 1

[C++/CLI] Type conversion for rosparams in ROS 1 Note: I'm not using launch files (I should, but I'm not) $ rosrun pkg

2018-06-26 02:06:52 -0500 asked a question [C++/CLI] Type conversion for rosparams in ROS 1

[C++/CLI] Type conversion for rosparams in ROS 1 Note: I'm not using launch files (I should, but I'm not) $ rosrun pkg

2018-06-26 01:47:03 -0500 answered a question fatal error: rosconsole/macros_generated.h: No such file or directory

The issue is that you are not passing in the correct location for g++ to search for headers. If you don't want to use

2018-06-19 13:40:33 -0500 received badge  Popular Question (source)
2018-06-13 03:29:48 -0500 commented answer rviz_rendering behaves differently in isolated and non-isolated build scenarios

Commit 8595e166d43 solved the issue.

2018-06-12 20:16:05 -0500 commented question rviz_rendering behaves differently in isolated and non-isolated build scenarios

Sorry about the mess. I've corrected it and am trying to reproduce it again. Those were big brain fade events

2018-06-12 20:14:45 -0500 edited question rviz_rendering behaves differently in isolated and non-isolated build scenarios

rviz_rendering behaves differently in isolated and non-isolated build scenarios I'm building ros2 from source using this

2018-06-12 20:08:28 -0500 edited question rviz_rendering behaves differently in isolated and non-isolated build scenarios

rviz_rendering behaves differently in isolated and non-isolated build scenarios I'm building ros2 from source using this

2018-06-12 13:24:53 -0500 received badge  Notable Question (source)
2018-06-12 07:21:21 -0500 received badge  Popular Question (source)
2018-06-11 03:55:03 -0500 commented answer Definition of message field type frame_id std_msgs/Header?

I think rviz maps the messages based on frame_id matching the tf frame name. This is sort of enforcement if you want to

2018-06-11 03:53:04 -0500 edited question rviz_rendering behaves differently in isolated and non-isolated build scenarios

Isolated and non-isolated ament build command behave differently I'm building ros2 from source using this dockerfile. Th

2018-06-10 23:46:11 -0500 commented question Best practice for multiple architecture workspace?

Explicitly specify/prohibit compilation as per architecture. In CMake, you can perform cross-compilation pretty easily.

2018-06-10 20:36:31 -0500 received badge  Supporter (source)
2018-06-10 20:34:44 -0500 edited answer Is there a way to get ROS_INFO, ROS_ERROR, etc to output line numbers?

This page's section about Console Output Formatting is what you are looking for. Essentially export ROSCONSOLE_FORMAT=

2018-06-10 20:26:15 -0500 received badge  Organizer (source)
2018-06-10 20:25:18 -0500 asked a question rviz_rendering behaves differently in isolated and non-isolated build scenarios

Isolated and non-isolated ament build command behave differently I'm building ros2 from source using this dockerfile. Th

2018-06-10 20:11:09 -0500 marked best answer [docker] ament: command not found

I tried to use the ros2 docker image and could not find the ament executable. What am I doing wrong?

$ docker run --rm -it osrf/ros2:ardent-basic bash
# echo $PATH
/opt/ros/ardent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# which ament
# echo $?
1
# ament build
bash: ament: command not found
# find / -name ament
# echo $0
bash
# source /opt/ros/ardent/setup.bash
# # same results with the commands above. No sense in repeating
2018-06-10 20:11:06 -0500 marked best answer ImportError while installing ROS2 from source

I followed the instructions for installing ROS2 from source (from github wiki).

Isolated and non-isolated build:

src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install <--isolated>: I'm getting a Import Error: No module named 'catkin_pkg' and a NameError: name 'catkin_pkg' is not defined. The errors occur at line number 34 and 48 in ros1_bridge/__init__.py.

$ <path-to-python> -c 'import catkin_pkg' reproduces this error.

Any ideas why? Is there a step that I've missed? Should there be a sudo -H pip install catkin_pkg rospkg somewhere in the docs?

2018-06-10 20:11:06 -0500 received badge  Scholar (source)
2018-06-07 04:13:46 -0500 asked a question [docker] ament: command not found

[docker] ament: command not found I tried to use the ros2 docker image and could not find the ament executable. What am

2018-05-13 16:49:45 -0500 received badge  Famous Question (source)
2018-02-01 19:29:47 -0500 received badge  Notable Question (source)
2018-02-01 13:30:18 -0500 received badge  Popular Question (source)