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

robopo's profile - activity

2023-02-23 16:28:49 -0500 received badge  Nice Question (source)
2022-01-12 14:08:29 -0500 received badge  Famous Question (source)
2021-11-23 07:07:11 -0500 commented answer How to Run ros2 launch file using service file

Hi there, why do you have sleep 60? How is this important? Some sort of protection?

2021-09-06 01:00:38 -0500 received badge  Famous Question (source)
2021-09-06 01:00:38 -0500 received badge  Notable Question (source)
2021-06-25 23:34:41 -0500 commented question action feedback type creating a new type action feedback message after creating a new client

HI there, have you been able to solve it? I believe I have similar problem and I also don't know how to solve it.

2021-05-27 14:18:53 -0500 received badge  Student (source)
2021-03-11 01:32:14 -0500 received badge  Notable Question (source)
2021-03-10 13:21:53 -0500 answered a question Automatic build&install ros2 on your Raspberry Pi

Thanks for the hint. I just created the git Let's have a look. https://github.com/poschl/ableros

2021-03-08 06:57:48 -0500 received badge  Popular Question (source)
2021-03-07 01:36:18 -0500 asked a question Automatic build&install ros2 on your Raspberry Pi

Automatic build&install ros2 on your Raspberry Pi Hi guys, I just create an Ansible script that will build and inst

2021-01-15 01:42:45 -0500 received badge  Popular Question (source)
2021-01-10 07:55:35 -0500 asked a question How to organize ros2 packages

How to organize ros2 packages Hi there, I have a question regarding how to organize a larger ros2 project. Do you have

2021-01-10 07:48:58 -0500 asked a question colcon build separate pacakges

colcon build separate pacakges Hi there, I have a question regarding how to organize a larger ros2 project. Do you have

2020-11-09 11:46:37 -0500 received badge  Notable Question (source)
2020-10-21 11:01:21 -0500 received badge  Popular Question (source)
2020-10-21 08:54:05 -0500 commented question Where is the right place for logic

You made a good point, Thank you.

2020-10-21 06:31:18 -0500 asked a question Where is the right place for logic

Where is the right place for logic Hi there, I have rather a general question. I know that I can do it either way but s

2020-08-24 10:24:21 -0500 received badge  Famous Question (source)
2020-06-28 06:07:07 -0500 received badge  Notable Question (source)
2020-06-25 15:47:10 -0500 received badge  Famous Question (source)
2020-05-03 10:51:25 -0500 received badge  Notable Question (source)
2020-05-03 09:30:35 -0500 commented answer ros2 launch not working after source my package

I already did this. It's in the post.

2020-04-23 01:03:46 -0500 received badge  Popular Question (source)
2020-04-21 15:16:43 -0500 edited question ros2 launch not working after source my package

ros2 launch not working after source my package Honestly I do not know what is happeing on the background therefore I'm

2020-04-21 15:16:43 -0500 received badge  Editor (source)
2020-04-21 13:15:58 -0500 asked a question ros2 launch not working after source my package

ros2 launch not working after source my package Honestly I do not know what is happeing on the background therefore I'm

2020-04-20 13:55:21 -0500 marked best answer ROS2 Python relative import of my scritps

Hi guys, I have a project on Raspberry pi 3, a compiled ROS2 foxy from source, install Kivy and everything if fine. But now I'm trying to port my UI from ROS1 to ROS2 and I can't figure out how to do relative imports like from utils. See to code.

Package(ROS2) hierarchy:

control_panel_ui
├── control_panel_ui
│   ├── graphical_interface.py
│   ├── __init__.py
│   ├── listeners
│   │   ├── __init__.py
│   │   └── start_listeners.py
│   ├── media
│   │   └── image.png
│   └── utils
│       ├── dict_services.py
│       ├── get_rpc.py
│       ├── __init__.py
│       ├── states.py
│       └── vehicle_state.py
├── package.xml
├── setup.cfg
├── setup.py
├── ...

And the code. Kivy is imported fine but my code such as utils, listeners etc. doesn't.

#kivy.require('1.7.2')
from kivy.app import App
 ...
from kivy.clock import Clock

from .utils.vehicle_state import VehicleState
from .utils.dict_services import dict_serv
from .utils.get_rpc import get_rpc_function

...

After the colcon build [package].py is moved to the install directory but those utils doesn't and then it it says cannot find package.

edited: Maybe the thing is I don't know how to configure setup.py/.cfg. Maybe a link or an example would be great. I was not able to find anything uselful.

added setup.py/.cfg

from setuptools import setup

package_name = 'control_panel_ui'

setup(
    name=package_name,
    version='0.0.0',
    packages=[package_name],    
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml'])
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='pi',
    maintainer_email='michal@michal.com',
    description='TODO: Package description',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'control_panel_ui = control_panel_ui.graphical_interface:graphical_interface'
        ],
    },
)

cfg

[develop]
script-dir=$base/lib/control_panel_ui
[install]
install-scripts=$base/lib/control_panel_ui
2020-04-20 13:55:21 -0500 received badge  Scholar (source)
2020-04-20 13:12:48 -0500 received badge  Popular Question (source)
2020-04-20 12:17:07 -0500 edited question ROS2 Python relative import of my scritps

ROS2 Python relative import of my scritps Hi guys, I have a project on Raspberry pi 3, a compiled ROS2 foxy from source,

2020-04-20 12:08:40 -0500 asked a question ros2 python import custom scripts

ros2 python import custom scripts How can I import a custom script in ros2? I was not able to find anything in the docum

2020-04-18 01:24:05 -0500 asked a question ROS2 Python relative import of my scritps

ROS2 Python relative import of my scritps Hi guys, I have a project on Raspberry pi 3, a compiled ROS2 foxy from source,

2017-03-19 14:02:51 -0500 commented question pyqtgraph can't choosing at rqt_plot's backend type

I have exactly the same problem! I tried deb, git and I can't choose. It's also disabled.