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

aland_t's profile - activity

2023-02-12 03:56:48 -0500 received badge  Taxonomist
2021-07-01 15:39:30 -0500 received badge  Nice Question (source)
2019-12-04 03:55:06 -0500 received badge  Famous Question (source)
2019-06-19 02:01:06 -0500 received badge  Great Answer (source)
2019-05-21 03:58:26 -0500 marked best answer How to run a newly created rqt plugin?

I am trying to create an plugin for rqt. So far I have followed the tutorial "rqt/Tutorials/Create your new rqt plugin" on the ROS wiki exactly, but when I type "rosrun rqt_mypkg rqt_mypkg" I get the following message:

Couldn't find executable named rqt_mypkg below /home/alan/catkin_ws/src/rqt_mypkg
Found the following, but they're either not files, or not executables:
 /home/alan/catkin_ws/src/rqt_mypkg
 /home/alan/catkin_ws/src/rqt_mypkg/src/rqt_mypkg

I have no idea what is wrong. Please help.

2018-06-25 08:04:35 -0500 received badge  Self-Learner (source)
2018-03-30 10:44:06 -0500 received badge  Good Answer (source)
2016-11-02 08:35:29 -0500 received badge  Notable Question (source)
2016-09-13 07:46:19 -0500 received badge  Nice Answer (source)
2016-08-02 15:26:48 -0500 received badge  Famous Question (source)
2016-06-22 15:35:22 -0500 received badge  Popular Question (source)
2016-05-29 13:55:02 -0500 asked a question Issues with running ROS Indigo and using the pigpio I2C library

I am running ROS Indigo on a Raspberry Pi 2 with Raspbian Jessie. I need to use PWM to control some motors and I2C to communicate with a fuel gauge. I am utilizing the pigpio library, since I can start the pigpio daemon with sudo and not have to worry about needing root access to use GPIO pins.

I wrote individual scripts to perform these functions, and they both produce the expected output. When I call the functions inside ROS, the PWM works fine, but the I2C comms fail.

If I remove the I2C code from the ROS node, and run the test script, I get the expected output until I start ROS. Even after killing ROS, the I2C comms do not return to normal. Any ideas?

Never mind. The pinout diagram I was looking at for the Pi 2 had a mistake. I'm using pin 13 on the Pi as an alert signal from the fuel gauge. This is GPIO 27, but the diagram said it was GPIO 2 which is actually the SDA line for I2C. So, when I set GPIO 2 as an input I killed I2C. I am now using the correct pin number, and everything works as expected.

2016-05-12 14:41:04 -0500 received badge  Necromancer (source)
2016-05-12 14:41:04 -0500 received badge  Teacher (source)
2016-05-11 11:15:16 -0500 answered a question Error "Client wants topic A to have B, but our version has C. Dropping connection."

For anyone else who gets this error, check the queue size. I had this error, but in my case it was caused by conflicting queue sizes between the publisher and subscriber.

2016-04-13 11:58:57 -0500 answered a question rosrun cannot find executables.

The problem seems to have been fixed by putting the raspicam package in a separate workspace.

2016-04-13 08:15:07 -0500 received badge  Notable Question (source)
2016-04-13 01:48:03 -0500 received badge  Popular Question (source)
2016-04-12 21:01:00 -0500 commented question rosrun cannot find executables.

I added the output of echo echo $ROS_PACKAGE_PATH before and after sourcing. This is clearly a problem. The script is c++ not Python.

2016-04-12 13:59:02 -0500 asked a question rosrun cannot find executables.

I realize this question has been asked to death, but when running rosrun raspicam raspicam_node I get the message [rosrun] Couldn't find executable named raspicam_node below /opt/ros/indigo/share/raspicam.

I am running Raspbian jessie on a Raspberry Pi 2 with ROS Indigo. catkin_make_isolated was used to build the workspace. I placed the following lines in .bashrc:

source /opt/ros/indigo/setup.bash export ROS_PACKAGE_PATH=/home/pi/ros_catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks export ROS_WORKSPACE=/home/pi/ros_catkin_ws

Prior to running rosrun, I enter the ros_catkin_ws directory and input source devel_isolated/setup.bash The executable exists under ros_catkin_ws/devel_isolated/raspicam/lib/raspicam. If I move the executable to ros_catkin_ws/src/raspicam/src, everything works fine, but I would rather it work without manually moving files.

Output of echo $ROS_PACKAGE_PATH

Before sourcing: /home/pi/ros_catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

after sourcing: /home/pi/ros_catkin_ws/src/image_transport_plugins/theora_image_transport:/opt/ros/indigo/share:/opt/ros/indigo/stacks

2016-02-10 21:16:42 -0500 received badge  Famous Question (source)
2016-01-06 00:26:18 -0500 received badge  Famous Question (source)
2015-12-10 14:02:19 -0500 received badge  Notable Question (source)
2015-12-10 11:38:35 -0500 received badge  Popular Question (source)
2015-12-10 09:55:37 -0500 commented question Why the increased system usage?

As noted by Humpelstilzchen, the %CPU is per core so there is no problem with 125%CPU on the Pi2. I was able to decrease the lag of the camera to about 0.5 seconds by adding "gpu_mem=512" to "/boot/config.txt". I will play around with it some more and see how low I can get the lag.

2015-12-10 09:36:17 -0500 commented answer Why the increased system usage?

Thanks for the rapid response. I did not realize that %CPU was for one core. Now I just need to solve the camera latency issue.

2015-12-10 08:30:31 -0500 asked a question Why the increased system usage?

I have a Raspberry Pi B running Raspbian and ROS Groovy with two nodes. The first node controls the Pi camera and publishes the feed which is subscribed to on a separate PC. The second node publishes data received from a custom daughter board that is subscribed to by the PC, and subscribes to data published by the PC and sends that data to the daughter board. The camera streams fine by itself, and the other node operates great by itself. If both nodes are running, the camera is still fine, but the second node never updates data (the PC and daughter board never receive quality data). I plugged the Pi into a monitor for troubleshooting and noticed the green system usage bar is maxed out when running the second node.

I figured the Pi could not handle this robust of a node and decided to upgrade to the Pi 2.

Here's where things get interesting/confusing.

The Pi 2 is running Ubuntu with ROS Indigo. Both nodes start, but now the camera feed lags by 2-3 seconds. I decided to check the system usage for both Pi's and got the following results: Pi B: Pi 2:
PiCameraNode: 5.5-5.8% PiCameraNode: 3.3-4.0%
ServerNode: 87.4-88.9% ServerNode: 122.6-124.0%

Why would the Pi 2 which is significantly more powerful need more resources for the same code? Any ideas as to what could cause this, or how to fix the problem? Any help would be appreciated.

2015-09-08 03:36:32 -0500 received badge  Student (source)
2015-09-08 03:36:26 -0500 received badge  Famous Question (source)
2015-07-21 06:36:09 -0500 received badge  Notable Question (source)
2015-07-21 06:35:54 -0500 received badge  Famous Question (source)
2015-06-25 14:39:08 -0500 answered a question Using qwt with qt_ros

Ok, It started to work magically. Here is what I did: In ui_main_window.h change "#include qwtcompass.h" to "#include qwt-qt4/qwt_compass.h". This change has to be repeated every time the .ui file is altered, for now. In qwt_abstract_scale_draw.h the lines "slots" and "signals" must be changed to "Q_SLOTS" and "Q_SIGNALS" respectively. In CMakeLists.txt, "${Qwt_LIBRARIES}" must be added to the list of "target_link_libraries()".

2015-06-25 08:32:42 -0500 commented answer Using qwt with qt_ros

Looking at rqt_plot the only reference to Qwt I see is the python bindings.

2015-06-25 08:29:50 -0500 commented answer Using qwt with qt_ros

I tried all of this, no change...

2015-06-24 16:25:34 -0500 received badge  Notable Question (source)
2015-06-24 12:49:35 -0500 edited question Using qwt with qt_ros

I am trying to build a qt_ros package which uses a custom .ui file with a couple of qwt widgets. The standard qt_ros package builds and displays the original main window gui. When I replace the old .ui file with the one I want to use, I get the message qwt_dial.h: No such file or directory. I have confirmed that the files exist in usr/include/qwt-qt4. The only thing I can think of is maybe there should be lines including qwt in package.xml and/or CMakeLists.txt, or qwt should be installed elsewhere. Any help would be appreciated.

edit: I am running Ubuntu 14.04 and ROS Indigo.

edit: Earlier I added the path to the widget library to ui_main_window.h which is generated with catkin_make. This allowed the file to be found. It was then giving me an error with slot and signal; those had to be changed to Q_SLOT and Q_SIGNAL. Currently I am getting a few undefined reference errors involving QwtCompass and QwtDial.

2015-06-24 12:48:24 -0500 commented answer Using qwt with qt_ros

Okay, I am searching for stuff now.

2015-06-24 10:57:56 -0500 commented answer Using qwt with qt_ros

Thus far I am unable to find any projects that use qt_ros and qwt.

2015-06-23 14:40:50 -0500 received badge  Popular Question (source)
2015-06-22 08:38:25 -0500 marked best answer Error compiling ethzasl_ptam

I am running Ubuntu 12.04 with ROS Groovy. When I run catkin_make, I receive the following error:

<my path>/ratio_layouted_frame.h:36:18: fatal error: QFrame: No such file or directory compilation terminated.

When I look up QFrame, it appears this is a part of pyqt4. Searching for pyqt4, I conclude this is used in the Indigo distribution. Am I correct with this assumption? Is there a way around this error?

Thanks for any help.

OK, I found something which indicates QFrame should be included with Groovy. Still can't get past this error...