ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

mbfg's profile - activity

2020-12-18 13:30:18 -0500 marked best answer Using ROS to communicate between Linux, MATLAB, and Windows Nodes?

I've been working this summer as a research assistant on a piece of Github code. I'm trying to add in some functionality that allows post processing of image data that is captured by a high speed camera node.

Essentially the way it works, is ROS Kinetic running on Linux Ubuntu has the Master node. There are triggering cameras with respective trigger camera nodes that watch continuously for an event to occur.

I connect to MATLAB and start a MATLAB global node, for the purpose of running MATLAB post processing code on the data.

The issue I'm having is that the high speed cameras we use to actually capture the data after an event has been triggered, the API and SDK is only compatible with Windows. So I would need to either create a Windows node that can communicate with my Linux master and Matlab global node, or somehow simply send a command to the Windows PC to begin recording. The delay on this command would need to be very low... less than 1ms.

I've read that there is some compatibility between Windows and ROS, but it is not straightforward for Kinetic. What would be the recommended way to approach this? I am a relative newbie to ROS but have taught myself the basics.

2020-01-25 14:14:40 -0500 received badge  Famous Question (source)
2020-01-25 14:14:40 -0500 received badge  Notable Question (source)
2019-11-18 22:58:03 -0500 received badge  Student (source)
2019-11-10 23:41:43 -0500 received badge  Famous Question (source)
2019-11-10 23:41:43 -0500 received badge  Notable Question (source)
2019-09-19 19:18:05 -0500 asked a question Illegal Instruction Error when compiling opencv_apps

Illegal Instruction Error when compiling opencv_apps I am trying to use a Raspberry Pi3 running Raspbian Stretch with RO

2019-09-17 13:12:58 -0500 received badge  Famous Question (source)
2019-08-19 18:58:43 -0500 received badge  Famous Question (source)
2019-07-30 18:59:27 -0500 received badge  Notable Question (source)
2019-07-30 09:25:53 -0500 received badge  Popular Question (source)
2019-07-29 18:05:35 -0500 asked a question Subscriber callback does not change value of timestamp

Subscriber callback does not change value of timestamp I am trying to use the "/image_raw" topic's header.stamp.sec to c

2019-07-12 12:26:14 -0500 received badge  Popular Question (source)
2019-07-10 10:00:47 -0500 received badge  Enthusiast
2019-07-09 11:18:12 -0500 asked a question Using ROS to communicate between Linux, MATLAB, and Windows Nodes?

Using ROS to communicate between Linux, MATLAB, and Windows Nodes? I've been working this summer as a research assistant

2019-07-09 11:18:10 -0500 asked a question Using ROS to communicate between Linux, MATLAB, and Windows Nodes?

Using ROS to communicate between Linux, MATLAB, and Windows Nodes? I've been working this summer as a research assistant

2019-06-21 18:47:06 -0500 received badge  Popular Question (source)
2019-06-09 01:51:40 -0500 received badge  Notable Question (source)
2019-05-30 16:51:34 -0500 commented answer Finding the name of a camera

Thanks for formatting my post so it is pretty, and thanks for the answer.

2019-05-29 21:26:26 -0500 marked best answer Finding the name of a camera

I'm trying to run the following ros command:

rosrun ros_flydra camhistograms --camera /Basler_XXX/image_raw

Where in the documentation for flydra, Basler_XXX is supposed to be replaced with the name of the camera you are using. I'm having trouble finding the name of my camera, and am confused if it is named by ros or by the flydra program.

When I run 'lsusb' I get the following

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 007: ID 1e10:3300 Point Grey Research, Inc. 

Bus 002 Device 002: ID 1e10:3300 Point Grey Research, Inc. 

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub

Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver

Bus 001 Device 003: ID 046d:c537 Logitech, Inc. 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Where the two point grey cameras are the cameras I'm using.

In an example command a few lines down in the documentation:

rosrun camera_calibration cameracalibrator.py --size 6x8 --square=0.029 image:=/Basler_21020232/image_raw camera:=Basler_21020232

Which makes me think that the name I need is simply "Manufacturer_Serial" because the serial number is the same digits as his example when I run the command:

rosrun pointgrey_camera_driver list_cameras

Number of cameras found: 2

[0]Serial: 18467619, Model: Flea3 FL3-U3-13E4M, Vendor: Point Grey Research, Sensor: E2v EV76C560 (1/1.8" Mono CMOS), Resolution: 1280x1024, Color: false, Firmware Version: 2.15.3.3

[1]Serial: 18467624, Model: Flea3 FL3-U3-13E4M, Vendor: Point Grey Research, Sensor: E2v EV76C560 (1/1.8" Mono CMOS), Resolution: 1280x1024, Color: false, Firmware Version: 2.15.3.3

How can I find out the name needed for the command? Any suggestions are appreciated.

2019-05-29 16:59:41 -0500 edited question Finding the name of a camera

Finding the name of a camera I'm trying to run the following ros command: rosrun ros_flydra camhistograms --camera /Bas

2019-05-29 16:59:29 -0500 edited question Finding the name of a camera

Finding the name of a camera I'm trying to run the following ros command: rosrun ros_flydra camhistograms --camera /Bas

2019-05-29 16:58:39 -0500 edited question Finding the name of a camera

Finding the name of a camera I'm trying to run the following ros command: rosrun ros_flydra camhistograms --camera /Bas

2019-05-29 16:58:39 -0500 received badge  Editor (source)
2019-05-29 16:57:56 -0500 asked a question Finding the name of a camera

Finding the name of a camera I'm trying to run the following ros command: rosrun ros_flydra camhistograms --camera /Bas

2019-05-27 10:44:53 -0500 marked best answer "ImportError: No module named ..." $PYTHONPATH problem with ansible?

I'm trying to get a piece of research software from github up and running on a lab computer for my professor. Flydra is a multi-camera tracking system used to detect multiple airborne insects or small animals. The required OS for Flydra is Ubuntu 16.04, which I haven't frequently used before but am semi-competent with. For instance, I was able to fix the low resolution problem by manually installing the Nvidia driver, and another failed-login issue upon startup from the grub menu. Flydra is installed using the ansible tool, something that I am completely unfamiliar with how it works. Below is the entire setup process I've gone through for Flydra, as I am not sure what step or how the issue is caused with the $PYTHONPATH.

----------------------------------------------------------------------------------

  • The following commands use ansible to download the code from github, and gives the following output.
  1. 'sudo apt-get install git ansible'
  2. 'cd ~/'
  3. 'git clone https://github.com/strawlab/strawlab-...
  4. 'cd strawlab-ansible-roles/'
  5. 'sudo ansible-playbook -i "localhost," -c local playbook.yml'

*Note in order for the ansible package to install correctly and avoid a localhost not found error, I had to reenable the security update settings in System Settings -> Software & Updates -> Updates -> Install updates from -> Important security updates, Recommended updates, Unsupported updates.


PLAY *************************

TASK [setup] ********************* ok: [localhost]

TASK [ros-kinetic : get ROS apt signing key] *********** ok: [localhost]

TASK [ros-kinetic : use ROS Ubuntu repository] *********** ok: [localhost]

TASK [ros-kinetic : use ROS Ubuntu source repository] ******** ok: [localhost]

TASK [ros-kinetic : install ROS kinetic packages] ********** ok: [localhost]

TASK [strawlab-public-debs : get strawlab apt signing key] ******* ok: [localhost]

TASK [strawlab-public-debs : get strawlab public apt repo] ******* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : Ensure rosdep sources dir exists] ** ok: [localhost]

TASK [ros-kinetic-freemovr-engine : Ensure strawlab rosdep URL is included into rosdep sources] * ok: [localhost]

TASK [ros-kinetic-freemovr-engine : Ensure freemovr-engine-kinetic.rosinstall is available] * ok: [localhost]

TASK [ros-kinetic-freemovr-engine : install sudo command] ****** ok: [localhost]

TASK [ros-kinetic-freemovr-engine : install wstool command] ****** ok: [localhost]

TASK [ros-kinetic-freemovr-engine : Ensure workspace installer dir exists] * ok: [localhost]

TASK [ros-kinetic-freemovr-engine : copy installer script] ******* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-freemovr-engine : apt] ************* ok: [localhost]

TASK [ros-kinetic-flydra : install flydra package] ********* ok: [localhost]

TASK [ros-kinetic-flydra : Ensure rosdep sources dir exists] ***** ok: [localhost]

TASK [ros-kinetic-flydra : Ensure strawlab rosdep URL is included into rosdep sources] * ok: [localhost]

TASK [ros-kinetic-flydra : Ensure flydra-kinetic.rosinstall is available] ** ok: [localhost]

TASK [ros-kinetic-flydra : install sudo command] ********* ok: [localhost]

TASK [ros-kinetic-flydra : install wstool command] ********* ok: [localhost]

TASK [ros-kinetic-flydra : install rosinstall command] ******* ok: [localhost]

TASK [ros-kinetic-flydra : Ensure workspace installer dir exists] **** ok: [localhost]

TASK [ros-kinetic-flydra : copy installer script] ********** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-flydra : apt] **************** ok: [localhost]

TASK [ros-kinetic-freemovr : put "vr" function into bashrc] ****** ok: [localhost]

TASK [ros-kinetic-freemovr : Ensure freemovr-kinetic.rosinstall is available] ** ok: [localhost ... (more)

2019-05-27 10:44:53 -0500 received badge  Scholar (source)
2019-05-27 10:44:52 -0500 received badge  Supporter (source)
2019-05-25 20:16:29 -0500 received badge  Popular Question (source)
2019-05-25 17:15:20 -0500 commented answer "ImportError: No module named ..." $PYTHONPATH problem with ansible?

The instructions for flydra installation are linked on the main page under "Installation" with a link called 'our Ansibl

2019-05-24 17:56:50 -0500 asked a question "ImportError: No module named ..." $PYTHONPATH problem with ansible?

"ImportError: No module named ..." $PYTHONPATH problem with ansible? I'm trying to get a piece of research software from