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

zcm's profile - activity

2022-05-19 04:16:44 -0500 marked best answer How to find if nodes are running on the same machine?

Hello, everyone! I see ROS is a real distributed system, all nodes use node_name and node_uri to identify itself. Now I need to write a monitor process, to monitor all nodes on the same machine.

From http://wiki.ros.org/ROS/Slave_API , I can use getPid( ) to get the PID of that node server. But how can I check if that node is running on the same machine ? Is there a standard way of doing this ? Thanks!

2020-01-13 19:47:01 -0500 received badge  Famous Question (source)
2019-12-26 21:23:10 -0500 received badge  Famous Question (source)
2019-12-09 22:27:23 -0500 received badge  Notable Question (source)
2019-12-09 22:27:23 -0500 received badge  Popular Question (source)
2019-11-28 04:46:05 -0500 received badge  Notable Question (source)
2019-09-17 01:16:18 -0500 received badge  Popular Question (source)
2019-08-09 00:24:17 -0500 asked a question cross compile ros2 for arm64 board

cross compile ros2 for arm64 board Hello, all, I have some problems when I cross compile ros2 master branch from source

2019-08-08 22:31:56 -0500 asked a question openssl/conf.h

openssl/conf.h Hello, I compile ros2 source on my ubuntu 16.04 machine, when I compile the fastrtps cmake package, repo

2019-08-08 22:30:45 -0500 asked a question ros2 fastrtps compile failed

ros2 fastrtps compile failed Hello, I compile ros2 source on my ubuntu 16.04 machine, when I compile the fastrtps cmake

2019-06-22 12:44:37 -0500 received badge  Famous Question (source)
2018-12-30 11:41:11 -0500 received badge  Famous Question (source)
2018-12-30 11:41:11 -0500 received badge  Notable Question (source)
2018-12-30 11:41:11 -0500 received badge  Popular Question (source)
2018-12-14 14:44:01 -0500 received badge  Famous Question (source)
2018-09-18 15:22:35 -0500 received badge  Famous Question (source)
2018-07-26 07:07:35 -0500 received badge  Notable Question (source)
2018-05-31 18:25:05 -0500 marked best answer abnormal exited rosnode still be seen on Master?

Hello, everyone: I see Master is a xmlRPC server that maintains all the information of all nodes, but when a node abnormal exited, that node still can be seen on the master ? How can I check the active status of that node? Thanks!

2018-05-31 18:24:14 -0500 received badge  Popular Question (source)
2018-04-18 05:08:51 -0500 commented answer Generate deb from dependent ros package locally

So is there possibility that your qt_ros_interface CMakelists is wrong ? I don't know .... maybe should use find_packag

2018-04-15 20:28:54 -0500 edited answer Generate deb from dependent ros package locally

Could you paste the CMakelist file of package robis_math_utilities ? Did it create a cmake config file for the package

2018-04-15 20:26:56 -0500 commented answer Generate deb from dependent ros package locally

Well, the cmake file seems correct. But I see your edited question, "can't parse dependency ros-kinetic-robis_math_uti

2018-04-13 07:46:56 -0500 answered a question Generate deb from dependent ros package locally

Could you paste the CMakelist file of package robis_math_utilities ? Did it create a cmake config file for the package

2018-04-13 04:53:30 -0500 marked best answer How should I list packages that are not located in the repository root in rosdistro file ?

Hello, everyone,

I have some packages that are not located in the repo root, so I need to find an example of a release repo in the rosdistro file to finger out how to list these packages correctly ? But I can't find one...

From this link http://wiki.ros.org/bloom/Tutorials/F... , packages should be list like:

foo: packages: foo_msgs: foo_server: foo_utils: But the kinetic rosdistro file shows:

  packages:
  - hector_compressed_map_transport
  - hector_geotiff
  - hector_geotiff_plugins
  - hector_imu_attitude_to_tf
  - hector_imu_tools
  - hector_map_server

There isn't colon at the end of each package.

When packages are not located in the root dir:

packages:
  foo_msgs: util/foo_msgs
  foo_server: tool/foo_server

I tried this use python yaml module, packages as a dict, and foo_msgs as a key. But there don't have paths information in the created rosdistro file ? I don't know what I did wrong, Thanks!


Edit: Hello, I checked the code in rosdistro package:

class Package:

def __init__(self, name, repository_name):
    self.name = name
    self.repository_name = repository_name

    # for backward compatibility only
    self.subfolder = None
    self.status = None
    self.status_description = None

The subfolder is always None...

So this means new rosdistro file doesn't support putting packages in subfolders anymore ? I have to put all packages in the root of repo ?

Edit: Thanks for suggestions from @gvdhoorn, I should add more information about the problem!

Actually, I want to use bloom to release my project, but I don't want it to open pull request for me. I am using a local custom rosdistro, so I need to fill the release info into my rosdistro file including the packages list in my project repo. Then the problem is that rosdistro module can't parse the yaml correctly when the listed packages are not in the top directory of my repo... like can't find package.xml or can't find its depends... So I want to know is there a way to list packages name and their paths in the yaml file, and rosdistro module can parse and find package's depends correctly ? Thanks!

2018-04-13 04:51:58 -0500 received badge  Notable Question (source)
2018-04-13 04:51:15 -0500 commented answer How should I list packages that are not located in the repository root in rosdistro file ?

Well, I just wrote a demo to want to prove the problem. But I found out I was wrong. I used the rosdistro module uncor

2018-04-13 03:57:58 -0500 commented question How should I list packages that are not located in the repository root in rosdistro file ?

@gvdhoorn, I have updated my question adding some details, Thanks!

2018-04-13 03:56:39 -0500 edited question How should I list packages that are not located in the repository root in rosdistro file ?

How should I list packages that are not located in the repository root in rosdistro file ? Hello, everyone, I have some

2018-04-13 03:42:53 -0500 received badge  Popular Question (source)
2018-04-13 03:39:14 -0500 commented question How should I list packages that are not located in the repository root in rosdistro file ?

And I see some code in rosdistro package, that it can't find the package.xml of the package, when I put the package in t

2018-04-13 03:36:31 -0500 commented question How should I list packages that are not located in the repository root in rosdistro file ?

"If necessary, a path to that package can be specified after the colon if it is not located in the repository root"

2018-04-13 03:36:18 -0500 commented question How should I list packages that are not located in the repository root in rosdistro file ?

@gvdhoorn Thanks for your reply! I see the yaml file just list package names, not relative location, in like kinetic r

2018-04-13 02:04:55 -0500 answered a question How should I list packages that are not located in the repository root in rosdistro file ?

Hello, I checked the code in rosdistro package: class Package: def __init__(self, name, repository_name): self.nam

2018-04-12 22:29:00 -0500 edited question How should I list packages that are not located in the repository root in rosdistro file ?

How should I list packages that are not located in the repository root in rosdistro file ? Hello, everyone, I have some

2018-04-12 22:29:00 -0500 received badge  Editor (source)
2018-04-12 22:28:29 -0500 edited question How should I list packages that are not located in the repository root in rosdistro file ?

How should I list packages that are not located in the repository root in rosdistro file ? Hello, everyone, I have some

2018-04-12 22:26:41 -0500 asked a question How should I list packages that are not located in the repository root in rosdistro file ?

How should I list packages that are not located in the repository root in rosdistro file ? Hello, everyone, I have some

2018-04-12 22:10:53 -0500 commented answer Generate deb from dependent res package locally

@billyDong , I saw the log of fakeroot, it seems that cmake can't find 'robis_math_utilities' , maybe you need to instal

2018-04-11 07:53:46 -0500 received badge  Famous Question (source)
2018-04-06 14:52:57 -0500 received badge  Student (source)
2018-04-04 11:35:52 -0500 commented answer Is there only one catkin_ws can be active ?

It works! Thank you very much!

2018-04-04 09:55:26 -0500 marked best answer Is there only one catkin_ws can be active ?

Hi, everyone! Suppose I have two ros projects to develop at the same time, A and B. B use some exported files of A. But I can't source A and B devel/setup.bash at the same time... And I don't want to put A and B in one catkin_ws.

Thanks!