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

IanCol's profile - activity

2023-01-25 20:43:50 -0500 received badge  Necromancer (source)
2022-05-31 15:15:50 -0500 received badge  Famous Question (source)
2022-05-21 11:38:33 -0500 marked best answer Unable to import custom messages (Python)

Hi There,

I am following the python publisher/subscriber tutorial located here. I followed the first couple of steps to download and build the code. Then, as instructed, I started a roscore and in a new terminal I ran "rosrun node_example pyttalker.py". That's when the following error came up:

Traceback (most recent call last):
  File "/home/icolwell/node_example/src/pytalker.py", line 14, in <module>
    from node_example.msg import NodeExampleData
ImportError: No module named msg

It appears that python can't find the python headers for the custom ROS message. I did a bit of investigating and these are the results:

1 The output of "rosmsg package node_example" is:

node_example/NodeExampleData

So it appears that ROS is aware that custom messages exist.

2 I also tried to ensure my $PYTHONPATH includes node_example by running "source ~/node_example/devel/setup.bash". Then the output of "echo $PYTHONPATH" was:

/home/icolwell/node_example/devel/lib/python2.7/dist-packages:/home/icolwell/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages

3 The contents of "~/node_example/devel/lib/python2.7/dist-packages/node_example/msg" is totally empty. Is this correct? I would assume that there should be something there that was built according to CMakeLists.txt but I am not familiar with python modules.

I also looked around online and other people have had similar problems. However, they seemed to be caused by a screwed up package.xml or CMakeLists.txt file. This doesn't seem to be the case here since it is unmodified tutorial code, and it appears that all the correct message generation related dependencies are there.

Does anyone have any idea what is happening here? Or at the very least is someone able to reproduce the same error? I am running Indigo on 14.04.

Any help will be greatly appreciated :D

2022-05-21 11:38:33 -0500 received badge  Guru (source)
2022-05-21 11:38:33 -0500 received badge  Great Answer (source)
2022-03-31 15:54:50 -0500 answered a question anyone know of the existance of the cohda v2v or v2x ROS driver

It appears there is a driver available here: https://github.com/usdot-fhwa-stol/carma-cohda-dsrc-driver/tree/develop/dsr

2022-02-18 07:56:11 -0500 received badge  Notable Question (source)
2022-02-10 15:25:31 -0500 commented answer ros2 param namespace

Thanks! I actually forgot I had asked this question. At the time I believe I was confused about why you'd need parameter

2022-02-10 15:24:43 -0500 commented answer ros2 param namespace

Thanks! I actually forgot I had asked this question. At the time I believe I was confused about why you'd need parameter

2022-02-10 15:22:53 -0500 marked best answer ros2 param namespace

In this document: https://docs.ros.org/en/foxy/Concepts...

It mentions the following

Parameters are addressed by node name, node namespace, parameter name, and parameter namespace. Providing a parameter namespace is optional.

What exactly is a "parameter namespace"? I can't seem to find any other references to a parameter namespace in ros2.

2022-01-10 17:16:55 -0500 received badge  Popular Question (source)
2021-12-09 09:39:36 -0500 asked a question ros2 param namespace

ros2 param namespace In this document: https://docs.ros.org/en/foxy/Concepts/About-ROS-2-Parameters.html It mentions th

2021-06-02 07:23:14 -0500 received badge  Good Question (source)
2020-10-20 12:08:52 -0500 received badge  Necromancer (source)
2020-10-19 14:43:22 -0500 answered a question rosrun rviz rviz Xserver error

I happened to solve this rviz issue by following this answer: https://askubuntu.com/a/1069502/688415 Hope this helps ot

2020-10-06 17:25:05 -0500 answered a question ROS Driver for Delphi ESR RADAR

For those still looking, you may be interested in this driver: https://autonomoustuff.atlassian.net/wiki/spaces/RW/pages

2020-03-23 12:43:03 -0500 commented question Installing python-rosdep manually is required to follow the official instruction on Ubuntu 18.04?

I've also came across this bug because my CI testing for melodic is now failing, the official install instructions are n

2020-03-23 12:43:03 -0500 received badge  Commentator
2020-03-19 16:51:05 -0500 commented answer Recommended way to construct quaternion from roll/pitch/yaw with tf2?

Anyone know why it's deprecated? it's a nice one-line way to create a quaternion.

2019-12-31 21:06:10 -0500 received badge  Nice Question (source)
2019-07-23 12:35:02 -0500 commented answer Is there a way to save all rosbag data into a .csv or text file ?

-b Display messages in a bag file. -p Display messages in a matlab/octave-friendly plotting format. From here.

2019-06-21 09:28:09 -0500 received badge  Famous Question (source)
2019-06-03 14:15:57 -0500 received badge  Notable Question (source)
2019-06-02 21:03:21 -0500 commented answer Autoware open planner only works with vector map?

Ah, maybe that bug is the cause of the issues I was seeing. Unfortunately I didn't capture them, but there were errors c

2019-05-30 19:50:05 -0500 received badge  Popular Question (source)
2019-05-29 02:46:29 -0500 asked a question Autoware open planner only works with vector map?

Autoware open planner only works with vector map? Hi there, I am using the open planner local planner (op_local_planne

2019-04-13 11:27:20 -0500 commented answer How can generate a list of dependencies from the src folder of a workspace?

Thanks for responding! I did end up hacking up a mess of a bash script, I'll try the python API next time. If it comes o

2019-04-12 13:57:07 -0500 commented answer How can generate a list of dependencies from the src folder of a workspace?

I am also struggling to figure this out, all I'm trying to do is generate a list of apt package dependencies from a set

2019-04-12 13:47:35 -0500 received badge  Critic (source)
2019-03-22 16:08:04 -0500 received badge  Famous Question (source)
2018-09-04 03:49:13 -0500 received badge  Famous Question (source)
2018-04-09 03:54:05 -0500 received badge  Notable Question (source)
2018-02-28 15:12:19 -0500 marked best answer Performance impact of enabling topic statistics

ROS Topic Statistics are great for monitoring every topic on the system. Tools such as ARNI rely on topic statistics to be enabled at all times during normal operation.

Does anyone know what kind of performance impact there is to having enable_statistics set to True all the time?

Think of the following use case: I want to know the publish stats (frequency, data age) of a high-density Lidar driver output. I could subscribe to the pointcloud using a monitoring node, but this means the monitoring node would receive the entire pointcloud payload even though it doesn't need it. This seems rather inefficient, all it needs to know is if something was published or not and when.

Is that the purpose of topic statistics? a lightweight way to dump out all topic activity?

Just wondering if enable_statistics is something that was designed for debug only or something that could be left on at all times. I also couldn't find a REP that discusses topic statistics, if I missed something, please let me know.

Thanks!

2018-02-28 15:12:15 -0500 commented answer Performance impact of enabling topic statistics

Thanks! just the clarification I was looking for. I'll try some profiling and see how it looks.

2018-02-28 07:08:54 -0500 received badge  Notable Question (source)
2018-02-28 01:38:21 -0500 received badge  Popular Question (source)
2018-02-27 14:44:49 -0500 answered a question Question about sending parameters from remote Android device to ROS

You have a few options: You can use the ROS parameter server with the rosbridge according to this. The parameter serve

2018-02-27 14:06:08 -0500 asked a question Performance impact of enabling topic statistics

Performance impact of enabling topic statistics ROS Topic Statistics are great for monitoring every topic on the system.

2018-02-27 03:17:24 -0500 received badge  Popular Question (source)
2018-02-26 17:32:07 -0500 answered a question managing clockwise laserscan

Some thoughts of mine: You could simply define your own custom message called LaserScanCW or something. If you only in

2018-02-26 11:38:12 -0500 asked a question Node failure using ROS diagnostics framework

Node failure using ROS diagnostics framework I've been reading about the ROS diagnostics framework in order to add some

2018-01-03 22:30:29 -0500 answered a question Contains invalid quaternions (length not equal to 1)!

I also recently ran into this exact same error message when trying to visualize a nav_msgs/Path topic with invalid (all

2017-11-28 16:56:48 -0500 received badge  Notable Question (source)
2017-05-12 20:29:29 -0500 received badge  Famous Question (source)