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

tompe17's profile - activity

2023-08-17 07:29:09 -0500 received badge  Famous Question (source)
2023-05-06 03:08:31 -0500 received badge  Famous Question (source)
2023-05-06 03:08:31 -0500 received badge  Notable Question (source)
2023-05-06 03:08:31 -0500 received badge  Popular Question (source)
2023-04-27 11:08:13 -0500 commented answer ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

Yes it did work when the bridge code was fixed. i tried to get the patch for the bridge code into the release but I do

2023-01-10 13:22:54 -0500 commented question Problem reserving CacheChange in reader

I am seeing this also from Python code. Was there any resolution of this or any idea what can cause it?

2023-01-10 13:22:31 -0500 commented question Problem reserving CacheChange in reader

I am seeing this als0 from Python code. Was there any resolution of that or any idea what can cause it?

2022-12-14 08:26:58 -0500 received badge  Famous Question (source)
2022-11-03 06:25:03 -0500 marked best answer rviz ignoring transforms

With the lates update of Kinetic the display of laser scan data in some old bag files stopped working. I get the message

[ERROR] [1490090873.307973855]: Ignoring transform for child_frame_id "uav0/vicon_laser" from authority "unknown_publisher" because of an invalid quaternion in the transform (-0,018510 0,706860 -0,018510 0,706860)

in the terminal where rviz is started. This transform might be generated from a ros2 static transform but it worked before the latest update.

Is the quaternion invalid or is the check here buggy? And it did display properly before so can I disable this new check?

The launch file line generaing the transform that do now work is:

<node  pkg="tf2_ros" type="static_transform_publisher" name="laser_frame_publisher" args="0.12 0 -0.1 -0.01851 0.70686 -0.01851 0.70686 /uav0/vicon /uav0/vicon_laser" />
2022-11-03 06:24:59 -0500 received badge  Nice Question (source)
2022-09-28 13:40:41 -0500 received badge  Famous Question (source)
2022-08-30 08:10:26 -0500 commented answer how to delete a subcriber/publisher in rclpy

I am getting this in galaxy still. I am looking for a way to remove a subscription.

2022-06-29 09:33:33 -0500 received badge  Famous Question (source)
2022-06-06 09:52:51 -0500 received badge  Notable Question (source)
2022-06-06 09:52:51 -0500 received badge  Popular Question (source)
2022-05-23 11:31:10 -0500 received badge  Famous Question (source)
2022-04-13 00:24:40 -0500 received badge  Notable Question (source)
2022-04-10 14:59:36 -0500 received badge  Notable Question (source)
2022-04-08 05:28:12 -0500 received badge  Popular Question (source)
2022-04-06 05:44:03 -0500 commented question ROS2: How to get the sender of a message?

I am also having standard message like for tf. I might use a wrapper but the biggest issue with that solution is that I

2022-04-06 05:43:43 -0500 commented question ROS2: How to get the sender of a message?

I am also having standard message like for tf. I might use a rapper but the biggest issue with that solution is that I

2022-04-05 17:20:47 -0500 received badge  Popular Question (source)
2022-04-04 04:19:14 -0500 asked a question ROS2: How to get the sender of a message?

ROS2: How to get the sender of a message? Is it possible in ROS2 (using rclpy) to get the sender of a message in a callb

2022-04-04 03:24:49 -0500 answered a question ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

So I did write a script to generate message files and rules for translation so I can use ROS2 for DJI Onboard SDK ROS 4.

2022-03-29 07:29:10 -0500 commented question Ros2 galactic and porting rqt plugins from ros1?

I finally managed to find the repos on github so looked in https://github.com/ros2-gbp/rqt_plot-release and managed to

2022-03-28 13:56:59 -0500 asked a question Ros2 galactic and porting rqt plugins from ros1?

Ros2 galactic and porting rqt plugins from ros1? I want to port some of my ROS1 rqt plugins using rospy to ROS2 Galactic

2022-03-27 14:42:20 -0500 received badge  Notable Question (source)
2022-03-18 03:40:51 -0500 received badge  Popular Question (source)
2022-03-15 14:24:43 -0500 edited question ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0? Have anybody done a mapping between ROS1 and ROS2 for the new dji_sdk RO

2022-03-15 14:23:41 -0500 edited question ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

ROS1-ROS2 bridge for dji_sdk? Have anybody done a mapping between ROS1 and ROS2 for the new dji_sdk ROS API (version 4+,

2022-03-15 14:22:57 -0500 edited question ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

ROS1-ROS2 bridge for dji_sdk? Have anybody done a mapping between ROS1 and ROS2 for the new dji_sdk ROS API (version 4+,

2022-03-15 14:21:34 -0500 asked a question ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

ROS1-ROS2 bridge for dji_sdk? Have anybody done a mapping between ROS1 and ROS2 for the new dji_sdk ROS API (version 4+,

2022-03-03 19:15:03 -0500 edited question rqt_image_view and ros2 throws exception

rqt_image_view and ros2 throws exception I have problem in ros2 with rqt_image_view. Starting it and pressing refresh g

2022-03-03 19:14:00 -0500 asked a question rqt_image_view and ros2 throws exception

rqt_image_view and ros2 throws exception I have problem in ros2 with rqt_image_view. Starting it and pressing refresh g

2022-03-01 08:57:39 -0500 answered a question In ROS2 is it possible to set GAZEBO_MODEL_PATH in launch file?

I use sdf file and have a script that spawn the sdf file and the script finds the model.sdf. The meshes are found it se

2022-02-28 18:42:18 -0500 asked a question Why strange delay in visual in gazebo when using ROS2 SetEntityState

Why strange delay in visual in gazebo when using ROS2 SetEntityState I have a model in Gazebo with a visual and a camera

2022-02-11 13:25:03 -0500 received badge  Famous Question (source)
2022-02-11 13:22:21 -0500 received badge  Notable Question (source)
2022-02-11 13:22:21 -0500 received badge  Popular Question (source)
2022-02-11 11:40:36 -0500 commented answer ros2 launch: How to select parameters yaml file depending on parameter?

Thanks, it worked. Is this documented somewhere that you can use a tuple? Or is it some Python standard?

2022-02-11 11:37:14 -0500 marked best answer ros2 launch: How to select parameters yaml file depending on parameter?

I want to use a parameter (ns) to select the yaml file to load for parameters. I have a hard time finding how to do it... Is there a better way to do it?

I want to do something like:


def generate_launch_description():
    ns_arg = DeclareLaunchArgument("ns", default_value=TextSubstitution(text="/dji0"))
    location_arg = DeclareLaunchArgument("location", default_value=TextSubstitution(text="granso"))

    location_config = os.path.join(
        get_package_share_directory('lrs_wdb'),
        'config',
        f'location_{LaunchConfiguration('location')}.yaml'
    )

    return LaunchDescription([
        ns_arg,        
        Node(
            package='lrs_wdb',
            output='screen',
            emulate_tty=True,            
            namespace=LaunchConfiguration('ns'),
            executable='wdb',
            name='wdb',
            parameters=[location_config]
        )
    ])

But this is not working since "LaunchConfiguration('ns')" is an object. And googling it I did not find a strightforward way to get the value. So any suggestions how to solve this? I could use an environment variable I suppose but I do not think that is a good solution since for example ns is specified with a parameter.

2022-02-07 12:53:25 -0500 edited question ros2 launch: How to select parameters yaml file depending on parameter?

ros2 launch: How to select parameters yaml file depending on parameter? I want to use a parameter (ns) to select the yam

2022-02-07 12:52:44 -0500 asked a question ros2 launch: How to select parameters yaml file depending on parameter?

ros2 launch: How to select parameters yaml file depending on parameter? I want to use a parameter (ns) to select the yam

2022-01-24 14:41:47 -0500 marked best answer Can you have ros2 python launch files in pure python packages?

I created a package with:

ros2 pkg create --build-type ament_python lrs_exec

In that package I created a lcunh file according to https://docs.ros.org/en/galactic/Tuto...

The launch file is:

from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
    return LaunchDescription([
        Node(
            package='lrs_exec',
            output='screen',
            executable='resource',
            name='resource_agent'
        )
    ])

The executable is called resource.py and is in a sub-dir lrs_exec of the package lrs_exec.

Trying to run:

ros2 launch lrs_exec exec.launch.py

I get:

tompe@tpexps:~$ ros2 launch lrs_exec exec.launch.py
[INFO] [launch]: All log files can be found below /home/tompe/.ros/log/2022-01-24-15-02-45-557721-tpexps-4043650
[INFO] [launch]: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at /opt/ros/galactic/lib/python3.8/site-packages/launch/launch_service.py:226> exception=SubstitutionFailure("executable 'resource' not found on the libexec directory '/home/tompe/lrs2_ws/install/lrs_exec/lib/lrs_exec' ")>
Traceback (most recent call last):

So should this work or do I have to create a specific launch package as it was created in the launch turotial? I tested with resource.py and no difference.

2022-01-24 09:14:57 -0500 received badge  Rapid Responder (source)
2022-01-24 09:14:57 -0500 answered a question Can you have ros2 python launch files in pure python packages?

So my mistake, I had forgotten to add to entry points in setup.py. The following: entry_points={ 'console_scripts':

2022-01-24 08:47:32 -0500 commented question Can you have ros2 python launch files in pure python packages?

Above I had manually created install/lrs_exec/lib/lrs_exec. The first error message was that the directory did not exist

2022-01-24 08:43:11 -0500 edited question Can you have ros2 python launch files in pure python packages?

Can you have ros2 python launch files in pure python packages? I created a package with: ros2 pkg create --build-type a