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

Kenji Miyake's profile - activity

2023-01-22 18:35:35 -0500 received badge  Rapid Responder (source)
2023-01-22 18:35:35 -0500 answered a question I am using a PCAN usb driver, how to I communicate with it using ros2 Humble?

We use https://github.com/autowarefoundation/ros2_socketcan with PCAN.

2022-10-19 11:05:31 -0500 received badge  Good Answer (source)
2022-07-09 01:12:20 -0500 received badge  Nice Answer (source)
2022-05-24 20:22:29 -0500 received badge  Popular Question (source)
2022-05-24 11:06:31 -0500 commented answer Why velodyne_description isn't released for arm64?

Asked at https://github.com/ros2-gbp/velodyne_simulator-release/issues/1.

2022-05-24 10:45:18 -0500 commented answer Why velodyne_description isn't released for arm64?

I see, thank you! I'll create an issue. Maybe https://github.com/ros2-gbp/velodyne_simulator-release is another good pla

2022-05-24 10:34:19 -0500 commented answer Why velodyne_description isn't released for arm64?

I see, thank you! I'll create an issue. Maybe https://github.com/ros2-gbp/velodyne_simulator-release is another good pla

2022-05-24 09:52:48 -0500 commented answer Why velodyne_description isn't released for arm64?

It's not released to Rolling as well. $ docker run --rm -it arm64v8/ros:rolling $ apt update >/dev/null 2>&1

2022-05-24 09:50:50 -0500 commented answer Why velodyne_description isn't released for arm64?

Thank you for your comment! But seeing it's released to Foxy and Galactic, I guess there is some release issue. So I bel

2022-05-24 09:09:34 -0500 asked a question Why velodyne_description isn't released for arm64?

Why velodyne_description isn't released for arm64? Seeing these URLs, it seems not released. http://packages.ros.org/r

2022-04-15 11:21:57 -0500 received badge  Good Answer (source)
2022-04-15 10:01:43 -0500 received badge  Nice Answer (source)
2022-04-15 06:17:13 -0500 received badge  Rapid Responder (source)
2022-04-15 06:17:13 -0500 answered a question Is there a concise way to initialize a message with specific values?

You can write like this. geometry_msgs::build<geometry_msgs::msg::Point>().x(p.x).y(p.y).z(p.z); See this issue

2022-01-06 10:09:01 -0500 commented answer Launch Composed Nodes using the launch XML Frontend

I believe it would be available from Humble! https://github.com/ros2/launch_ros/pull/235

2021-12-16 01:17:13 -0500 received badge  Famous Question (source)
2021-11-12 13:14:59 -0500 marked best answer Different versions of python3-catkin-pkg-modules are distributed on packages.ros.org

It seems different versions of python3-catkin-pkg-modulesare distributed on packages.ros.org. Therefore, when I tried to install python3-catkin-pkg-modules, sometimes it fails, and sometimes succeeds.

Environment

  • Ubuntu 18.04
  • ROS Melodic

How to reproduce the problem

$ docker run --rm -it ubuntu:18.04 /bin/sh

# apt update && apt install -y lsb-release gnupg
# sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
# apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# apt update
# apt install -y python3-catkin-pkg-modules
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  docutils-common libfreetype6 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libpaper-utils libpaper1
  libpng16-16 libtiff5 libwebp6 libwebpdemux2 libwebpmux3 multiarch-support python3-dateutil
  python3-docutils python3-olefile python3-pil python3-pkg-resources python3-pygments python3-pyparsing
  python3-roman python3-six sgml-base tzdata ucf xml-core
Suggested packages:
  liblcms2-utils docutils-doc fonts-linuxlibertine | ttf-linux-libertine texlive-lang-french
  texlive-latex-base texlive-latex-recommended python-pil-doc python3-pil-dbg python3-setuptools
  ttf-bitstream-vera python-pyparsing-doc sgml-base-doc debhelper
The following NEW packages will be installed:
  docutils-common libfreetype6 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libpaper-utils libpaper1
  libpng16-16 libtiff5 libwebp6 libwebpdemux2 libwebpmux3 multiarch-support python3-catkin-pkg-modules
  python3-dateutil python3-docutils python3-olefile python3-pil python3-pkg-resources python3-pygments
  python3-pyparsing python3-roman python3-six sgml-base tzdata ucf xml-core
0 upgraded, 28 newly installed, 0 to remove and 16 not upgraded.
Need to get 42.0 kB/3179 kB of archives.
After this operation, 15.7 MB of additional disk space will be used.
Err:1 http://packages.ros.org/ros/ubuntu bionic/main amd64 python3-catkin-pkg-modules all 0.4.20-1
  404  Not Found [IP: 64.50.236.52 80]
E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/p/python3-catkin-pkg-modules/python3-catkin-pkg-modules_0.4.20-1_all.deb  404  Not Found [IP: 64.50.236.52 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

# apt install -y python3-catkin-pkg-modules # try again
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  docutils-common libfreetype6 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libpaper-utils libpaper1
  libpng16-16 libtiff5 libwebp6 libwebpdemux2 libwebpmux3 multiarch-support python3-dateutil
  python3-docutils python3-olefile python3-pil python3-pkg-resources python3-pygments
  python3-pyparsing python3-roman python3-six sgml-base tzdata ucf xml-core
Suggested packages:
  liblcms2-utils docutils-doc fonts-linuxlibertine | ttf-linux-libertine texlive-lang-french
  texlive-latex-base texlive-latex-recommended python-pil-doc python3-pil-dbg python3-setuptools
  ttf-bitstream-vera python-pyparsing-doc sgml-base-doc debhelper
The following NEW packages will be installed:
  docutils-common libfreetype6 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libpaper-utils libpaper1
  libpng16-16 libtiff5 libwebp6 libwebpdemux2 libwebpmux3 multiarch-support python3-catkin-pkg-modules
  python3-dateutil python3-docutils python3-olefile python3-pil python3-pkg-resources python3-pygments
  python3-pyparsing python3-roman python3-six sgml-base tzdata ucf xml-core
0 upgraded, 28 newly installed, 0 to remove and 16 not upgraded.
Need to get 41.8 kB/3179 kB of archives.
After this operation, 15.7 MB of additional disk space will be used.
Get:1 http://packages.ros.org/ros/ubuntu bionic/main amd64 python3-catkin-pkg-modules all 0.4.18-1 [41.8 kB]
Fetched 41.8 kB in 6s (7383 B/s)

Investigation

I can see that there are three addresses for packages.ros.org.

$ host packages.ros.org
packages.ros.org is an alias for ftp.osuosl.org.
ftp.osuosl.org has address 64.50.233.100
ftp.osuosl.org has address 140.211.166.134
ftp.osuosl.org ...
(more)
2021-09-19 13:02:12 -0500 answered a question List sourced workspaces

I'm not sure whether this would help you, but if you use colcon, COLCON_PREFIX_PATH can be used to know sourced workspac

2021-09-19 13:02:12 -0500 received badge  Rapid Responder (source)
2021-09-19 11:34:53 -0500 received badge  Rapid Responder (source)
2021-09-19 11:34:53 -0500 answered a question Setting use_sim_time globally across all ROS2 nodes

I think you can use SetParameter in this case. https://github.com/tier4/AutowareArchitectureProposal_launcher/blob/8cd

2021-08-24 05:02:13 -0500 commented answer Where are the recommended formatting rules of package.xml?

Thank you for adding your star so soon! :-) Please remember that this is tested only with our limited use cases yet.

2021-08-24 04:58:30 -0500 received badge  Self-Learner (source)
2021-08-24 04:58:30 -0500 received badge  Necromancer (source)
2021-08-24 04:55:36 -0500 received badge  Notable Question (source)
2021-08-24 04:31:53 -0500 marked best answer Where are the recommended formatting rules of package.xml?

Seeing existing ROS packages, it seems there are some rules for formatting package.xml.

  • There should be a new line between mandatory and optional tags.
  • There should be a new line when the depend type has changed.

However, I couldn't find the rules in REP 149. (I'm sorry if I overlooked them.)

Where are the rules written? Although I can guess it from package_format3.xsd, I want a more clear explanation.

Also, is there any way to check the rule automatically? I think ament_xmllint doesn't support it.

2021-08-24 04:31:24 -0500 edited answer Where are the recommended formatting rules of package.xml?

We developed https://github.com/tier4/pre-commit-hooks-ros to automatically format package.xml.

2021-08-24 04:30:48 -0500 answered a question Where are the recommended formatting rules of package.xml?

We added https://github.com/tier4/pre-commit-hooks-ros to automatically format package.xml.

2021-08-24 03:57:53 -0500 received badge  Popular Question (source)
2021-08-23 21:16:50 -0500 received badge  Nice Answer (source)
2021-08-11 02:36:49 -0500 commented answer ROS2 fish shell setup?

@Jason1923 Yes, it's for ROS1. This does the equivalent things in ROS2. register-python-argcomplete --shell fish ros2

2021-08-01 21:54:27 -0500 received badge  Notable Question (source)
2021-08-01 08:54:15 -0500 received badge  Rapid Responder (source)
2021-08-01 08:54:15 -0500 answered a question ROS2 fish shell setup?

You can use https://github.com/edc/bass to do that. bass source /opt/ros/galactic/setup.bash Also, if you launch fish

2021-07-08 07:32:53 -0500 answered a question ROS2 string repr of parameter within launch file

It's automatically evaluated in the launch phase, so generally, you don't have to care about it. If you'd like to print

2021-07-08 07:32:53 -0500 received badge  Rapid Responder (source)
2021-07-03 04:15:29 -0500 asked a question Where are the recommended formatting rules of package.xml?

Where are the recommended formatting rules of package.xml? Seeing existing ROS packages, it seems there are some rules f

2021-05-25 12:04:27 -0500 received badge  Famous Question (source)
2021-05-03 06:28:17 -0500 marked best answer Is parameter overrides supported in ROS2 launch?

Hello, I've used parameter overrides in ROS1. It's useful if we can use it in ROS2 as well. http://wiki.ros.org/roslaunch/Tutoria...

So I'd like to know:

  1. whether it's supported or not
  2. (if not supported) is it possible to implement it using Python launch API

As for 2, I think it's possible if we can:

  • iterate all actions defined in previous contexts
  • filter action by some conditions
  • override filtered action's attribute

It's similar to what I asked in #q375384. Is it possible to do such a thing?

2021-05-03 06:28:14 -0500 marked best answer Is it possible to refer to the actions defined in a different launch?

Hello, I'd like to know whether it's possible to refer to the actions defined in launch A, from launch B.

For example, considering the case of: - start publisher after 5 seconds wait - launch subscriber after publisher started

pubsub.launch.py

from launch import LaunchDescription
from launch.actions import RegisterEventHandler
from launch.actions.timer_action import TimerAction
from launch.event_handlers import OnProcessStart
from launch_ros.actions import Node


def generate_launch_description():
    publisher = Node(
        package="examples_rclcpp_minimal_publisher",
        executable="publisher_lambda",
        output="screen",
    )

    launch_publisher_after_timer = TimerAction(period=5.0, actions=[publisher])

    subscriber = Node(
        package="examples_rclcpp_minimal_subscriber",
        executable="subscriber_lambda",
        output="screen",
    )

    subscriber_handler = RegisterEventHandler(
        event_handler=OnProcessStart(
            target_action=publisher,
            on_start=[
                subscriber,
            ],
        )
    )

    return LaunchDescription([launch_publisher_after_timer, subscriber_handler])

This of course works as expected. However, if I split this into two launch files, sub.launch.py doesn't work correctly. (I know my usage is wrong.)

pub.launch.py(imports are omitted)

def generate_launch_description():
    publisher = Node(
        package="examples_rclcpp_minimal_publisher",
        executable="publisher_lambda",
        output="screen",
    )

    launch_publisher_after_timer = TimerAction(period=5.0, actions=[publisher])

    return LaunchDescription([launch_publisher_after_timer])

sub.launch.py(imports are omitted)

def generate_launch_description():
    publisher = Node(
        package="examples_rclcpp_minimal_publisher",
        executable="publisher_lambda",
        output="screen",
    )

    subscriber = Node(
        package="examples_rclcpp_minimal_subscriber",
        executable="subscriber_lambda",
        output="screen",
    )

    subscriber_handler = RegisterEventHandler(
        event_handler=OnProcessStart(
            target_action=publisher,
            on_start=[
                subscriber,
            ],
        )
    )

    return LaunchDescription([subscriber_handler])

pubsub.launch.xml

<launch>
  <include file="./pub.launch.py"/>
  <include file="./sub.launch.py"/>
</launch>

So my question is, can I use publisher Node defined in pub.launch.py as target_action in sub.launch.py? I guess it's possible if there is a method to iterate all actions defined in other launch files and then filter by name.

Thank you in advance.

2021-05-03 06:27:15 -0500 marked best answer What are the criteria for selecting services or actions? Did they change in ROS2 due to asynchronous services?

In ROS1, this page says that services

  • should be used for remote procedure calls that terminate quickly
  • should never be used for longer running processes

I'm not sure the specific amount of "long", but I guess this is because services were synchronous in ROS1, am I correct?

Now I think services became asynchronous in ROS2 and this page doesn't say we shouldn't use services for long tasks. Also, seeing this page, I think the point of selecting services or actions are

  • whether we cancel tasks
  • whether we need feedback

So I guess we can use services for a bit long tasks now. For example, suppose that there is a task that takes 30 seconds, and we don't need to know the progress and don't need to cancel it.

Is it okay to use services for the task? Or are any problems?

2021-05-03 06:27:15 -0500 received badge  Scholar (source)
2021-05-02 20:51:35 -0500 received badge  Student (source)
2021-05-02 20:51:27 -0500 received badge  Popular Question (source)
2021-05-01 04:54:47 -0500 asked a question What are the criteria for selecting services or actions? Did they change in ROS2 due to asynchronous services?

What are the criteria for selecting services or actions? Did they change in ROS2 due to asynchronous services? In ROS1,