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

highmax1234's profile - activity

2022-11-07 01:33:01 -0500 received badge  Famous Question (source)
2022-05-31 11:51:18 -0500 edited answer ROS2 get publisher node name from subscriber

Following the trace of the command line ros2 topic info leads us here: https://github.com/ros2/ros2cli/blob/f4e5952f430e

2022-05-31 11:50:18 -0500 edited answer ROS2 get publisher node name from subscriber

Following the trace of the command line ros2 topic info leads us here: https://github.com/ros2/ros2cli/blob/f4e5952f430e

2022-05-31 11:24:47 -0500 edited answer ROS2 get publisher node name from subscriber

Following the trace of the command line ros2 topic info leads us here: https://github.com/ros2/ros2cli/blob/f4e5952f430e

2022-05-31 11:23:36 -0500 answered a question ROS2 get publisher node name from subscriber

Following the trace of the command line ros2 topic info leads us here: https://github.com/ros2/ros2cli/blob/f4e5952f430e

2022-05-31 11:23:36 -0500 received badge  Rapid Responder (source)
2022-05-23 12:23:16 -0500 received badge  Good Question (source)
2022-05-11 04:36:49 -0500 received badge  Self-Learner (source)
2022-05-11 04:36:49 -0500 received badge  Teacher (source)
2021-09-29 03:41:45 -0500 received badge  Famous Question (source)
2021-09-16 05:02:09 -0500 received badge  Famous Question (source)
2021-08-06 23:25:56 -0500 received badge  Famous Question (source)
2021-08-06 23:25:56 -0500 received badge  Notable Question (source)
2021-08-06 23:25:29 -0500 received badge  Notable Question (source)
2021-08-06 23:25:29 -0500 received badge  Popular Question (source)
2021-07-27 07:44:07 -0500 received badge  Famous Question (source)
2021-07-05 15:48:54 -0500 commented question In ROSBag, filter header column

Speaking for ros2 since I don't know for ros1, you can just open the sql database and select all the topics you want wit

2021-07-05 15:39:09 -0500 received badge  Supporter (source)
2021-06-10 01:22:55 -0500 received badge  Notable Question (source)
2021-06-08 09:44:58 -0500 received badge  Notable Question (source)
2021-05-18 19:21:28 -0500 received badge  Notable Question (source)
2021-05-16 11:07:13 -0500 received badge  Popular Question (source)
2021-05-13 09:08:48 -0500 received badge  Enthusiast
2021-05-12 10:25:16 -0500 received badge  Popular Question (source)
2021-05-12 05:54:37 -0500 edited question ros2 launch or python3 foo.launch.py

ros2 launch or python3 foo.launch.py I see several example launch files which implement a main, instead of just returnin

2021-05-12 05:50:55 -0500 edited question ros2 launch or python3 foo.launch.py

ros2 launch or python3 foo.launch.py I see several example launch files which implement a main, instead of just returnin

2021-05-12 02:45:14 -0500 asked a question ros2 launch or python3 foo.launch.py

ros2 launch or python3 foo.launch.py I see several example launch files which implement a main, instead of just returnin

2021-05-12 01:12:31 -0500 commented question Running ROS2 across multiple machines

If you are using "raw" discovery without a fastdds discovery server, your switch/router will need to forward UDP Broadca

2021-05-12 01:06:30 -0500 commented question Can a node be a Publisher/Subscriber and a Service/Client at the same time

You can spawn another node within your node, create a new thread for it to do an asynchronous service call and then shut

2021-05-11 16:06:01 -0500 edited answer Balancing Two-Wheeled Robot in ROS2-Foxy

You will need a controller and a gazebo plugin. The controller can be either within the plugin or separate in a ros2 nod

2021-05-11 16:04:19 -0500 answered a question Balancing Two-Wheeled Robot in ROS2-Foxy

You will need a controller within a gazebo plugin. You can find examples on gazebo plugins in this repo: https://github.

2021-05-11 15:46:15 -0500 commented question [ROS2] service failure feedback to client

in python you can use cli.service_is_ready() But I see that this function sometimes needs to be called repeatedly until

2021-05-11 15:39:46 -0500 answered a question How to communicate ros2 nodes running on different machines and different network?

You have multiple possibilities, the easiest being a vpn. This one is easy to set up: https://vpncloud.ddswd.de/ You c

2021-05-11 15:39:46 -0500 received badge  Rapid Responder (source)
2021-05-11 15:29:02 -0500 commented question Can a node be a Publisher/Subscriber and a Service/Client at the same time

You can spawn another node within your node to do an asynchronous service call and then shut it down again.

2021-05-11 15:24:05 -0500 marked best answer import rclpy without sourcing setup.bash

Hi,

I want to use the rclpy module in a python script. This script is called by a flask application which is invoked by an apache2 webserver and does not get the necessary bash context. When I run the python script from bash with python3 foo.py everything works fine, as I have . /opt/ros/foxy/setup.bash in my ~/.bashrc .

When the script gets invoked by flask and apache2, import rclpy is not found. Exeucting sys.path.insert("/opt/ros/foxy/lib/python3.8/site-packages/") brings another error:

The C extension '/opt/ros/foxy/lib/python3.8/site-packages/rclpy/_rclpy.cpython-38-x86_64-linux-gnu.so' failed to be imported while being present on the system. Please refer to 'https://index.ros.org/doc/ros2/Troubleshooting/Installation-Troubleshooting/#import-failing-even-with-library-present-on-the-system' for possible solutions

There has been a similar Thread with no solution. The essence seems to be that opt/ros/foxy/setup.bash does more than just setting paths.

Now, is there any possibilty to use rclpy in a python script without sourcing from bash? Thanks

Ubuntu 20.04
ROS2 foxy

2021-05-11 15:23:12 -0500 commented answer import rclpy without sourcing setup.bash

I tried exporting, but it is not enough for sourcing ros. The setup.bash does more than setting env variables. I did som

2021-05-11 15:20:06 -0500 received badge  Famous Question (source)
2021-05-11 15:19:44 -0500 marked best answer ros2 topic empty with fastdds discovery server

Hello, I followed this tutorial to set up a discovery server for ros2. The talker and listener examples all worked fine.

However, when it came to

ros2 topic list
and
ros2 node list
which were not part of the tutorial exactly, I did not find any nodes or topics. I exported the Server as follows in every terminal session:

export ROS_DISCOVERY_SERVER=127.0.0.1:11811

It seems like this is enough for talker and listener nodes to find each other, but not for ros2 command line tools. Also, rqt did not show any nodes or topics either. Command line tools and rqt work fine with standard discovery.

Is there anything else I need to do for ros2 topic list to show the /chatter topic?

2021-05-11 15:18:10 -0500 answered a question ros2 topic empty with fastdds discovery server

The corresponding issue mentions this question and can be followed under this link: https://discourse.ros.org/t/discover

2021-05-11 15:09:37 -0500 marked best answer launch component into existing container

I want to launch a component into an existing container. Can anybody help me with this error?

As far as I can see, my code is identical with image_pipeline/stereo_image_proc/launch/stereo_image_proc.launch.py , which uses LoadComposableNodes too. However, the foxy branch does not contain this action anymore. Is it maybe deprecated in foxy? Is there an alternative?

When I run a container in bash#0 with

ros2 run rclcpp_components component_container

and then execute the following launch file in bash#1:

#!/usr/bin/python3
import launch
import launch.actions
import launch.substitutions
from launch_ros.descriptions import ComposableNode
from launch_ros.actions import LoadComposableNodes

def generate_launch_description():
    ld = launch.LaunchDescription()
    comp_node = ComposableNode(
                package="composition",
                plugin="composition::Talker",
                name='compose_name',
                namespace='compose_namespace',
                parameters=[],
                remappings=[],
            )

    load_component = LoadComposableNodes(
        composable_node_descriptions=[comp_node],
        target_container='/ComponentManager'),

    ld.add_action(load_component)
    return ld

I get the following error:

ros2 launch src/my_package/launch/test.launch.py 
[INFO] [launch]: All log files can be found below /home/user/.ros/log/2021-05-11-21-28-08-187318-ROS_WS-2144061
[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/foxy/lib/python3.8/site-packages/launch/launch_service.py:274> exception=AttributeError("'tuple' object has no attribute 'describe_sub_entities'")>
Traceback (most recent call last):
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 276, in _process_one_event
    await self.__process_event(next_event)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 296, in __process_event
    visit_all_entities_and_collect_futures(entity, self.__context))
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
    futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
    futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
    sub_entities = entity.visit(context)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/action.py", line 108, in visit
    return self.execute(context)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/actions/include_launch_description.py", line 140, in execute
    declared_launch_arguments = launch_description.get_launch_arguments()
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_description.py", line 126, in get_launch_arguments
    process_entities(self.entities, _conditional_inclusion=conditional_inclusion)
  File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_description.py", line 120, in process_entities
    entity.describe_sub_entities(), _conditional_inclusion=False)
AttributeError: 'tuple' object has no attribute 'describe_sub_entities'
2021-05-11 15:09:37 -0500 received badge  Scholar (source)
2021-05-11 15:09:27 -0500 received badge  Rapid Responder (source)
2021-05-11 15:09:27 -0500 answered a question launch component into existing container

Turns out it works when I use Launch Configuration: #!/usr/bin/python3 import launch import launch.actions import launc