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

galou's profile - activity

2022-12-13 16:51:47 -0500 marked best answer `rclcpp::Clock(RCL_ROS_TIME).now()` vs. `node_->get_clock()->now()`

Is rclcpp::Clock(RCL_ROS_TIME).now() always the same as node_->get_clock()->now()?

2022-12-13 16:51:46 -0500 received badge  Necromancer (source)
2022-12-13 16:51:46 -0500 received badge  Self-Learner (source)
2022-09-30 09:20:30 -0500 received badge  Famous Question (source)
2022-09-30 09:20:30 -0500 received badge  Notable Question (source)
2022-09-30 09:20:30 -0500 received badge  Popular Question (source)
2022-09-24 02:49:42 -0500 received badge  Favorite Question (source)
2022-05-07 22:32:29 -0500 received badge  Famous Question (source)
2022-05-03 08:58:15 -0500 marked best answer How can catkin find ROS libraries in non-standard locations?

Actually the complete question would be: How can catkin find ROS libraries in non-standard locations, or is it ok not to write a library for Python in catkin_package(...)?

I wrote a library in C++ for Python to wrap a C++ class. For it to be usable in Python I needed to change the default location. Extract of CMakeLists.txt in package crossing_detector:

set_target_properties(crossing_detector_wrapper_cpp PROPERTIES

PREFIX ""

LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION})

This work well in the sense that I can use it in Python with

from crossing_detector.crossing_detector_wrapper_cpp import CrossingDetectorWrapper

The problem comes when I want to compile separately (catkin_make_isolated or catkin build) another package that depends on crossing_detector, catkin complains about a missing library:

Project 'dataset_analyzer' tried to find library 'crossing_detector_wrapper_cpp'. The library is neither a target nor built/installed properly The library is not even needed there.

The problem doesn't occur when compiling both packages together (catkin_make).

See also: https://github.com/catkin/catkin_tool...

I'm thinking of solving the problem by removing the library from catkin_package(...). Is this ok to do so?

2022-02-28 06:42:51 -0500 asked a question Example of combining trajectories with MoveItCpp

Example of combining trajectories with MoveItCpp According to this question [With MoveItCpp] you can do things like

2022-02-23 07:29:13 -0500 edited answer `rclcpp::Clock(RCL_ROS_TIME).now()` vs. `node_->get_clock()->now()`

Well, it looks that the answer is NO. I had some issues with this and wasn't satisfied with the answer so I wrote a smal

2022-02-23 07:28:07 -0500 answered a question `rclcpp::Clock(RCL_ROS_TIME).now()` vs. `node_->get_clock()->now()`

Well, it looks that the answer is NO. I had some issues with this and wasn't satisfied with the answer so I wrote a smal

2022-02-23 07:13:43 -0500 received badge  Notable Question (source)
2021-12-04 15:16:50 -0500 received badge  Popular Question (source)
2021-12-02 04:11:19 -0500 asked a question `rclcpp::Clock(RCL_ROS_TIME).now()` vs. `node_->get_clock()->now()`

`rclcpp::Clock(RCL_ROS_TIME).now()` vs. `node_->get_clock()->now()` Is rclcpp::Clock(RCL_ROS_TIME).now() always th

2021-04-17 07:55:06 -0500 commented question use python rather than python3 in lots of files

Duplicate of https://answers.ros.org/question/376272/use-python-rather-than-python3-in-lots-of-files/.

2021-04-17 07:52:18 -0500 received badge  Rapid Responder (source)
2021-04-17 07:52:18 -0500 answered a question Use python rather than python3 in lots of files

I don't have an answer but a workaround: ln -s /usr/bin/python3 ~/.local/bin/python, so that python is python3 (of cours

2021-03-10 03:13:26 -0500 received badge  Famous Question (source)
2021-02-18 21:01:57 -0500 received badge  Notable Question (source)
2021-02-18 21:01:57 -0500 received badge  Popular Question (source)
2020-11-27 10:25:47 -0500 commented question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

What also doesn't work is cmd=['echo', '%%%%%', 'default_true_with_cmd: ', 'true' if evaluate_condition_expression(conte

2020-11-27 10:20:40 -0500 commented question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

What also doesn't work is cmd=['echo', '%%%%%', 'default_true_with_cmd: ', 'true' if evaluate_condition_expression(conte

2020-11-27 09:52:40 -0500 commented question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

I manage to solve my second example with: #!/usr/bin/env python3 # Try with `ros2 launch ./test2.launch.py no_default:=

2020-11-27 07:18:36 -0500 commented question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

I noticed that the issue is maybe somewhere else because I cannot pass the no_default argument to the following launch f

2020-11-26 23:34:33 -0500 edited question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2? I am able to use a boolean launch arg

2020-11-26 11:06:19 -0500 asked a question How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2?

How do I use launch arguments in the 'arguments' keyword argument of Node in ROS2? I am able to use a boolean launch arg

2020-05-06 09:47:03 -0500 received badge  Famous Question (source)
2020-04-28 15:39:20 -0500 received badge  Famous Question (source)
2020-04-17 15:26:00 -0500 received badge  Famous Question (source)
2019-11-14 05:00:07 -0500 marked best answer get ros2 version in C++

Are there any #define to know which version of ROS2 I'm using in C++ source?

2019-11-09 08:48:20 -0500 received badge  Nice Question (source)
2019-11-07 07:15:28 -0500 received badge  Notable Question (source)
2019-11-03 17:35:20 -0500 received badge  Popular Question (source)
2019-11-02 01:45:26 -0500 commented question [ROS2 Dashing] Can't run rqt

I found a workaround which consists in symlinking the directory written in the egg-link file and to the associated egg-i

2019-11-01 16:54:13 -0500 commented question [ROS2 Dashing] Can't run rqt

Similar thing here but different command and output: ros2 run rqt_gui rqt_gui Traceback (most recent call last): File

2019-11-01 16:53:39 -0500 commented question [ROS2 Dashing] Can't run rqt

Similar thing here but different command and output: ros2 run rqt_gui rqt_gui Traceback (most recent call last): File

2019-11-01 16:46:52 -0500 asked a question get ros2 version in C++

get ros2 version in C++ Are there any #define to know which version of ROS2 I'm using in C++ source?

2019-07-13 10:45:47 -0500 received badge  Famous Question (source)
2019-04-02 20:53:53 -0500 marked best answer set log level in launch file

Is there a way to set the log level for a node in a launch file?

I would find this practical.

Cheers, Gaël

2019-04-02 20:53:53 -0500 received badge  Great Answer (source)
2019-04-02 20:53:53 -0500 received badge  Guru (source)
2019-03-21 03:53:46 -0500 received badge  Popular Question (source)
2019-03-21 03:53:46 -0500 received badge  Notable Question (source)
2018-04-24 01:03:18 -0500 commented answer Undefined reference to tf2::fromMsg

I still had the error of undefined void tf2::doTransform(Pose &, Pose &, TransformStamped&). The file docume

2018-04-23 10:13:27 -0500 commented question Undefined reference to tf2::fromMsg

I have the same problem with indigo. I included <tf2_geometry_msgs/tf2_geometry_msgs.h>, added tf2_geometry_msgs t