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

clyde's profile - activity

2023-07-03 04:08:25 -0500 received badge  Notable Question (source)
2023-07-03 04:08:25 -0500 received badge  Famous Question (source)
2023-05-22 14:33:50 -0500 received badge  Famous Question (source)
2023-05-22 08:48:26 -0500 received badge  Popular Question (source)
2023-05-22 08:47:48 -0500 marked best answer Build ros2 from source in Docker

I imagine folks do this all the time, but somehow I can't find a standard Dockerfile or osrf image like osrf/ros2:source.

I see the tag mentioned here, but it doesn't exist: https://hub.docker.com/r/osrf/ros2/

Obviously I can just build my own, but I just wanted to ask in case I'm missing something obvious.

2023-05-22 08:47:18 -0500 received badge  Notable Question (source)
2023-05-22 08:47:18 -0500 received badge  Famous Question (source)
2023-05-22 08:46:17 -0500 marked best answer ResizeNode subscribes and publishes camera info on the same topic

Seems like a dumb question, but I can't find the answer.

I see that image_proc::ResizeNode subscribes to /camera_info, and then generates a new CameraInfo message with the scaled intrinsics. But it publishes this scaled camera info on the the same topic. The messages are identical except for fx, fy, cx and cy. How can a downstream node tell them apart? How does this work with image_transport?

Thanks.

2023-05-22 08:46:07 -0500 answered a question ResizeNode subscribes and publishes camera info on the same topic

Bug reported here: https://github.com/ros-perception/image_pipeline/issues/703

2023-05-15 15:11:24 -0500 received badge  Famous Question (source)
2023-04-24 16:29:46 -0500 received badge  Good Answer (source)
2023-04-02 13:43:47 -0500 answered a question Topic for SCALED_PRESSURE2

This is an old message, but I recently stumbled upon it looking for the same information. The upshot is that mavros doe

2023-03-17 03:45:30 -0500 received badge  Nice Answer (source)
2023-02-24 12:14:23 -0500 received badge  Nice Answer (source)
2023-02-22 07:48:57 -0500 received badge  Necromancer (source)
2023-01-14 02:16:13 -0500 received badge  Popular Question (source)
2023-01-14 02:16:13 -0500 received badge  Notable Question (source)
2023-01-10 02:02:26 -0500 received badge  Good Answer (source)
2023-01-06 06:36:34 -0500 received badge  Nice Answer (source)
2022-12-24 07:49:59 -0500 received badge  Good Answer (source)
2022-12-23 10:17:15 -0500 received badge  Nice Answer (source)
2022-12-23 08:45:09 -0500 answered a question Actions and nested goal states

You can nest message types inside message types, service types and action types in both ROS1 and ROS2. See section 2.1.

2022-12-23 08:45:09 -0500 received badge  Rapid Responder (source)
2022-12-20 08:57:07 -0500 edited question Why isn't Gazebo publishing on the /odom topic on ROS2?

Wh Gasebo isn't pubishing on the /odom topin on ROS2? Hey all! I'm having some problems with Gazebo. I'm using ROS2 foxy

2022-12-19 08:10:15 -0500 commented answer ROS2 workspace clean

Nice! Thanks for posting.

2022-12-02 11:50:37 -0500 asked a question sensor_msgs_LIBRARIES has ~2000 entries

sensor_msgs_LIBRARIES has ~2000 entries Distro: Humble on 22.04 I'm seeing weird behavior, and I don't quite know what

2022-12-01 12:51:44 -0500 commented answer ROS2 Foxy fail to link kdl_parser

In Foxy, kdl_parser declared a PUBLIC dependency on urdf, but did not export that dependency. It looks like this was fix

2022-12-01 12:37:49 -0500 commented question [ROS2] CMake Error When Building the Package

I don't see a call to ament_package() in your CMakeLists.txt file. See: https://docs.ros.org/en/humble/How-To-Guides/Ame

2022-11-23 13:53:02 -0500 commented answer How to get an array of parameters with rclcpp

foo is std::vector<int64_t>. Yes, that is the default.

2022-11-23 12:54:43 -0500 commented answer How to get an array of parameters with rclcpp

declare_parameter also gets the parameter. But if you need to use get_parameter, it looks like that isn't possible right

2022-11-19 08:47:54 -0500 commented answer ROS2 action goal canceling problem

I was looking for an example that had time.sleep() in it to simulate a long-running calculation. I actually found some g

2022-11-19 08:44:35 -0500 marked best answer Handling long actions in rclpy (with cancellation)

The Fibonacci action demo is nice, but it doesn't support cancellation.

I added a custom cancel_callback, called it from ros2 action send_goal, and tried to cancel by hitting ctrl-C, but it doesn't seem to work. I suspect that's because execute_callback is blocking.

What is a preferred pattern for handling long-running actions in rclpy with cancellation? Any examples / demos / tutorials?

Thanks.

2022-11-19 08:44:25 -0500 answered a question Handling long actions in rclpy (with cancellation)

Whoops, I looked at the rclpy demos, but forgot about the rclpy examples. There are several server examples showing how

2022-11-19 08:44:25 -0500 received badge  Rapid Responder (source)
2022-11-17 19:27:19 -0500 answered a question Is there an equivalent of rospy.wait_for_message in ros2?

I have not tried it, but I see that this features was added to rclpy Rolling just 2 days ago: https://github.com/ros2/r

2022-11-17 17:27:11 -0500 asked a question Handling long actions in rclpy (with cancellation)

Handling long actions in rclpy (with cancellation) The Fibonacci action demo is nice, but it doesn't support cancellatio

2022-11-17 17:17:32 -0500 commented answer ROS2 action goal canceling problem

Thanks for this example. Is there a way to support long-running actions? E.g., in https://github.com/ros2/demos/blob/hum

2022-11-03 16:18:05 -0500 marked best answer usb_cam outbuf size mismatch; possibly different format?

I'm using usb_cam with a camera that supports mjpeg, but I'm getting errors. The camera supports these formats:

$ v4l2-ctl --device=0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index       : 0
Type        : Video Capture
Pixel Format: 'MJPG' (compressed)
Name        : Motion-JPEG
    Size: Discrete 1920x1080
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 1280x720
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 800x600
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 640x480
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 640x360
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 352x288
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 320x240
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 1920x1080
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)

Index       : 1
Type        : Video Capture
Pixel Format: 'YUYV'
Name        : YUYV 4:2:2
    Size: Discrete 640x480
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 800x600
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 640x360
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 352x288
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 320x240
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)
    Size: Discrete 640x480
        Interval: Discrete 0.033s (30.000 fps)
        Interval: Discrete 0.040s (25.000 fps)
        Interval: Discrete 0.067s (15.000 fps)

Here's my launch file:

<launch>

  <node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
    <param name="video_device" value="/dev/video0" />
    <param name="image_width" value="640" />
    <param name="image_height" value="480" />
    <param name="pixel_format" value="mjpeg" />
    <param name="camera_frame_id" value="usb_cam" />
    <param name="io_method" value="mmap"/>
  </node>

  <node name="image_view" pkg="image_view" type="image_view" respawn="false" output="screen">
    <remap from="image" to="/usb_cam/image_raw"/>
    <param name="autosize" value="true" />
  </node>

</launch>

At 640x480 I get an image, but I also get lots of messages like this:

[swscaler @ 0x1433780] deprecated pixel format used, make sure you did set range correctly

At 800x600 (and above) I do not get an image, but I do get lots of these messages:

[ERROR] ros.usb_cam: outbuf size mismatch.  pic_size: 720000 bufsize: 960000

Interestingly ... (more)

2022-11-03 16:17:57 -0500 answered a question usb_cam outbuf size mismatch; possibly different format?

I was able to work around this by modifying usb_cam. I opened a bug: https://github.com/ros-drivers/usb_cam/issues/79

2022-10-23 16:00:09 -0500 received badge  Nice Answer (source)
2022-10-03 01:33:56 -0500 received badge  Famous Question (source)
2022-09-15 04:19:12 -0500 received badge  Nice Answer (source)
2022-08-10 00:42:04 -0500 received badge  Notable Question (source)
2022-07-05 04:56:28 -0500 received badge  Notable Question (source)
2022-07-01 07:37:09 -0500 commented answer UserWarning: ERROR: No flags found

I suggest you start a new question for Windows.

2022-06-22 11:04:58 -0500 commented question gstreamer appsink buffer to ROS CompressedImage

The fact that the failure is in cvtColor suggests that there's a problem with your gstreamer pipeline. Have you gotten t

2022-06-16 10:54:44 -0500 received badge  Nice Answer (source)
2022-06-15 20:05:46 -0500 received badge  Popular Question (source)
2022-06-03 02:10:52 -0500 marked best answer using ros-tooling/action-ros-ci in a private repo

Hi, I'm trying to use ros-tooling/action-ros-ci with a private repo. Here are the contents of .github/workflows/build_test.yml:

name: ROS CI
on:
  pull_request:
  push:
    branches:
      - main

jobs:
  foxy_build:
    name: foxy_build
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2.3.4
      - uses: ros-tooling/setup-ros@0.3.2
        with:
          required-ros-distrutions: foxy
      - uses: ros-tooling/action-ros-ci@0.2.5
        with:
          package-name: gst_tools
          target-ros2-distro: foxy

IIUC, this should "just work" with a private repo. But I'm consistently getting github action errors like this:

Run ros-tooling/action-ros-ci@0.2.5
  with:
    package-name: gst_tools
    target-ros2-distro: foxy
    colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
  env:
    LANG: en_US.UTF-8

Repos files: override - none
Repos files: supplemental - none
Invoking: bash -c,rosdep update --include-eol-distros
  /usr/bin/bash -c rosdep update --include-eol-distros
  reading in sources list data from /etc/ros/rosdep/sources.list.d
  Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
  Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
  Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
  Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
  Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
  Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
  Add distro "ardent"
  Add distro "bouncy"
  Add distro "crystal"
  Add distro "dashing"
  Add distro "eloquent"
  Add distro "foxy"
  Add distro "galactic"
  Add distro "groovy"
  Add distro "humble"
  Add distro "hydro"
  Add distro "indigo"
  Add distro "jade"
  Add distro "kinetic"
  Add distro "lunar"
  Add distro "melodic"
  Add distro "noetic"
  Add distro "rolling"
  updated cache in /home/runner/.ros/rosdep/sources.cache
Invoking: bash -c,vcs diff -s --repos /home/runner/work/gst_tools/gst_tools/ros_ws | cut -d ' ' -f 1 | grep "gst_tools$" | xargs rm -rf
  /usr/bin/bash -c vcs diff -s --repos /home/runner/work/gst_tools/gst_tools/ros_ws | cut -d ' ' -f 1 | grep "gst_tools$" | xargs rm -rf
Invoking: bash -c,vcs import --force --recursive src/ < package.repo
  /usr/bin/bash -c vcs import --force --recursive src/ < package.repo
  === src/adkd07aag29/gst_tools (git) ===
  Could not clone repository 'https://github.com/clydemcqueen/gst_tools.git': Cloning into '.'...
  fatal: could not read Username for 'https://github.com': No such device or address
Error: The process '/usr/bin/bash' failed with exit code 1

In comparison, I have zero problems with creating a private repo using https://github.com/ros-tooling/action... which uses tooling/action-ros2-lint rather than ros-tooling/action-ros-ci.

Any clues?

Thanks.