Ask Your Question

billmania's profile - activity

2022-01-15 11:49:39 -0600 edited answer Publishing diagnostics from an Arduino

This works with ROS Melodic, rosserial_arduino, and ros-teensy on a Teensy 4.1 #include "ros.h" #include "diagnostic_ms

2022-01-15 11:48:44 -0600 answered a question Publishing diagnostics from an Arduino

This works with ROS Melodic, rosserial_arduino, and ros-teensy on a Teensy 4.1 #include "ros.h" #include "diagnostic_ms

2021-03-08 14:00:32 -0600 received badge  Good Question (source)
2021-01-20 05:28:34 -0600 received badge  Famous Question (source)
2020-05-05 02:53:59 -0600 marked best answer How to install my Python modules as part of my ROS package

I'm using:

ROS Melodic

ubuntu 18.04

Python 3.6.9

My ROS project name is "ros_moos" and my Python package name is "ros_moos".

My directory structure under ~/catkin_ws/src/ros_moos is:

├── CMakeLists.txt
├── launch
│   └── ros_moos.launch
├── LICENSE
├── msg
│   ├── AuvMove.msg
│   ├── AuvPose.msg
│   ├── AuvSafety.msg
│   └── AuvSystems.msg
├── nodes
│   ├── ros_moos
│   │   ├── auv_control.py
│   │   ├── auv_status.py
│   │   ├── __init__.py
│   │   ├── moos_ros.py
│   │   ├── moos_test.py
│   │   └── uuv_moos.py
│   └── tests
├── package.xml
├── params
│   └── auv_params.yaml
├── README.md
├── requirements.txt
└── setup.py

setup.py contains:

from setuptools import setup
from catkin_pkg.python_setup import generate_distutils_setup

setup_args = generate_distutils_setup(
    version="0.0.1",
    packages=['ros_moos'],
    package_dir={'': 'src'})

setup(**setup_args)

In the CMakeLists.txt I have catkin_python_setup() enabled. I build the project with "catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3" and there are no errors.

roslaunch can find my ROS package and start my two Python nodes, auv_control.py and auv_status.py. rostopic and rosmsg can find the definitions for AuvPose and the other messages.

The problem is the other Python modules, moos_ros.py and uuv_moos.py are NOT installed into the /devel/ environment and auv_status.py can't import those modules when started by roslaunch.

According to https://docs.ros.org/api/catkin/html/... and https://docs.ros.org/api/catkin/html/... I've done what's required.

Is this a known issue or need I do something more?

2020-05-04 23:32:45 -0600 received badge  Notable Question (source)
2020-05-04 17:16:10 -0600 answered a question How to install my Python modules as part of my ROS package

Thanks to a nudge and some suggestions from Jarvis Schultz I found the problem with my setup. In my definition of the pa

2020-05-02 01:11:43 -0600 received badge  Popular Question (source)
2020-05-01 17:12:03 -0600 commented answer How to install my Python modules as part of my ROS package

A few paragraphs earlier in that same document one can find "Standard ROS practice is to place all executable Python pro

2020-05-01 13:30:30 -0600 edited question How to install my Python modules as part of my ROS package

How to install my Python modules as part of my ROS package I'm using: ROS Melodic ubuntu 18.04 Python 3.6.9 My ROS p

2020-05-01 13:30:30 -0600 received badge  Editor (source)
2020-05-01 13:27:25 -0600 asked a question How to install my Python modules as part of my ROS package

How to install my Python modules as part of my ROS package I'm using: ROS Melodic ubuntu 18.04 Python 3.6.9 My ROS p

2020-04-15 10:16:07 -0600 received badge  Famous Question (source)
2020-02-25 07:52:18 -0600 received badge  Notable Question (source)
2020-01-07 13:28:38 -0600 received badge  Popular Question (source)
2020-01-06 16:58:10 -0600 answered a question how to run rqt with ubuntu and eloquent, service not available

After reading https://answers.ros.org/question/91231/rqt-plugin-not-listedfound-in-list-returned-by-rqt-list-plugins/?an

2020-01-04 09:59:57 -0600 edited question how to run rqt with ubuntu and eloquent, service not available

how to run rqt with ubuntu and eloquent, service not available I have a clean installation of ROS2 Eloquent on an ubuntu

2020-01-04 09:57:42 -0600 asked a question how to run rqt with ubuntu and eloquent, service not available

how to run rqt with ubuntu and eloquent, service not available I have a clean installation of ROS2 Eloquent on an ubuntu

2017-07-07 10:24:35 -0600 received badge  Great Question (source)
2016-03-24 09:04:20 -0600 received badge  Good Question (source)
2015-12-27 18:47:40 -0600 received badge  Good Question (source)
2015-08-22 03:29:39 -0600 received badge  Nice Question (source)
2015-08-22 03:29:26 -0600 marked best answer Is this an accurate explanation of a covariance matrix?

My intent is to provide a simpler description, instead of a mathematical proof, and a practical example of a covariance matrix, especially as they are used in ROS.

Did I hit the mark with:

Covariance matrices with a practical example

2014-01-28 17:23:12 -0600 marked best answer How to encode special characters in a launch file <param> element

In the following example, I would like to have the value of the parameter "myString" to contain only two ASCII characters: CarriageReturn and LineFeed. How do I specify them in the definition of a parameter in a launch file?

<param name="myString" type="string" value="\r\n"/>

I've searched for the definition for all of the "special characters" but have not yet found the right combination of search terms.

2013-05-28 07:28:25 -0600 marked best answer Covariance matrix for the PoseWithCovariance in Odometry.msg

To disclaim, I do not have a solid understanding of covariance matrices. I'm also still using electric.

The Odometry.msg includes a geometry_msgs/PoseWithCovariance, which itself includes a geometry_msgs/Pose and a 6x6 covariance matrix. If the Point has three variables and the Quaternion has four variables, why isn't the covariance matrix 7x7?

Also, are the comments in the PoseWithCovariance.msg file inaccurate when they refer to the roll, pitch and yaw instead of to a quaternion?

2012-11-20 03:14:15 -0600 received badge  Famous Question (source)
2012-11-08 07:59:04 -0600 received badge  Famous Question (source)
2012-11-08 07:59:04 -0600 received badge  Popular Question (source)
2012-11-08 07:59:04 -0600 received badge  Notable Question (source)
2012-09-03 01:42:55 -0600 received badge  Famous Question (source)
2012-09-03 01:42:55 -0600 received badge  Popular Question (source)