Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 255 articles
Browse latest View live

rqt install in Fuerte / git target directories

$
0
0
Dear Ros experts! I want to install the rqt Package to my **fuerte** ROS version in ubuntu precise. I am following the instructions on see wiki.ros.org/rqt/UserGuide/Install/Groovy (At the end of the page) Then I have problems with the sentence: "Clone the git repositories qt_gui_core and rqt" As far as I know to clone a git repository you need to specify the target directory. The question: **what is the target directory where to clone the git rqt and qt_gui_core repository?** I am really new in ROS so I hope the question makes sense if not just tell me what I am not understanding. THANK YOU!

Remapping rqt published topics

$
0
0
I am developing an rqt GUI plugin to set some values in another node, but the rqt plugins seem to always place a namespace in front of my desired published topic name. For example, my rqt plugin is called "rqt_blueview," and I declare a published topic in the rqt plugin like this... this->max_range_pub_ = getNodeHandle().advertise("sonar_max_range", 1); However, the actual topic is published with the following topic name: /rqt_blueview/sonar_max_range I want to publish to `/sonar_max_range` I tried to remap the topic, but I can't seem to get it to work. I tried the following in a launch file: and I tried placing the remap tag inside the tags as well, but with no results. I think this has something to do with how the rqt plugin is loaded into the rqt higher-level Qt window. I was able to remap the subscribed topic `/sonar_max_range` to `/rqt_blueview/sonar_max_range` on the normal C++ ROS node subscribed side of the topic, but this naming convention doesn't seem natural to me. Is there a best practice for naming topics when using rqt plugins? I won't want a launch file remapping the rqt GUI plugins since the idea is to open rqt and then "add" the other rqt plugins to the main window. Thanks.

rqt_reconfigure resets parameters on startup

$
0
0
Hi, I had serious problems with saving and loading parameter while using rqt_reconfigure. To find my problem I broke the code down to the following: 1. Start the node with the dynamic_reconfigure server 2. rosparam set /node_name/myparam 42 3. rosparam get /node_name/myparam (returns 42 and everything works) 4. rosrun rqt_reconfigure rqt_reconfigure 5. rosparam get /node_name/myparam (returns value saved in .cfg file) I do not know why rqt_reconfigure does that. I also checked out its wiki page and as far as I see it should read the values from the parameter server and not set them back to the default from the .cfg file. I am lost.

rqt/Process Monitor not showing a node

$
0
0
[Ubuntu 13.10, ROS Hydro-Desktop-Full (built from source)] `rosnode list` shows it in a console but not the Process Monitor, even after refreshing. The messages published by the missing node are included in the Topic Monitor. I'm creating the node using `ros::init( argc, argv, "myNode");` in the main method of my executable. This is strange. Can anyone explain?

rospy rqt - shutdown?

$
0
0
Hi folks, this [tutorial](http://wiki.ros.org/rqt/Tutorials/Writing%20a%20Python%20Plugin) asks to shutdown publishers and subscribers in the overloaded shutdown_plugin method but doesn't explain how this is done. I couldn't find any advice on how to shutdown a publisher and unsubscribe a subscriber. Could anyone guide me? Thanks Cheers, Hendrik

Visualize services in rqt_graph

$
0
0
Hello, is there a way to visualize services in rqt? Like it is done with topics? I'm using groovy and Python

Initialize rospy in rqt_plugin

$
0
0
Dear all, I am trying to write a simple rqt_plugin for ROS Groovy in Python. The plugin is located in a rosbuild package. My plugin is supposed to publish to a topic using data entered in the UI created with qt-designer. I already can start the UI to fill a visualization_msgs::Marker message with the according current data. I can also use my plugin both standalone (rosrun my_pkg my_plugin) as well as with rqt. However, after starting the pulugin, there is no ROS node initialized for it. Thus, also the topic is not advertised and I get an error when calling the publish() function of the Publisher I created in the plugin Error Message: `rospy.exceptions.ROSException: ROS node has not been initialized yet. Please call init_node() first` As I read in the tutorial, the plugin itself should not call init_node() as rqt is doing this. So where does this initialization happen? Do I need to overload a certain function? My plugin is derived from rqt_gui_py.plugin.Plugin. I use a separate my_plugin_widget class similar to the existing rqt_plugins (e.g. rqt_publisher). One thing, I found is that I need to set qt_gui_py::Plugin as the base_class_type within the plugin.xml ... Also, I need to have in my manifest.xml in order to be able to find my plugin with rqt --list-plugins and to be able to start it. This is different from what the tutorials on the ROS wiki states where rqt_gu_py::Plugin is used in the plugin.xml and rqt_gui in the manifest.xml. I hope someone is able to help. If more information on my setup is needed, feel free to ask. Thanks!

How do I get started making RQT plugins?

$
0
0
Hey, So I'm fairly new at ROS, QT and RQT, and I'm trying to figure out how everything "fits together." I've looked at the guide for making RQT plugins yourself, but I'm still having some trouble figuring out how to actually set everything up. Once I have a QT widget made, say with a couple of buttons and a text label, how do I actually add ROS functions to those? I thought I'd just add the ROS-related code to my QT project, but it keeps telling me it can't find the ros/ros.h header file that it needs when I try to build, and I can't find that file anywhere on my ros install. Do I need my entire QT project to be in a catkin workspace, maybe? And how am I supposed to build it--using QT's built in "build" button, or through the catkin build commands? So what I'm really looking for is some guide to get me from the start (e.g. no code) to maybe some hello world RQT widget; I just need to understand how I'm supposed to structure everything/ make everything fit together. My setup: I need to work in C++ because some libraries I'm going to end up needing aren't available for python; I also want to "hard code" my QT widget (so not using a .ui file) because I need to populate some menus and drop downs while the program is running, which is hard to do when a .ui file is involved; I'm on ROS Indigo (can't use Hydro on Ubuntu 14.04) Thanks a lot for any input you may have. :)

rqt visualization capabilities

$
0
0
Hello All, As part of my master's thesis I'm actually evaluating the functional behaviour of a node that is subscribing data from different sources in order to merge data. Therefore the (asynchronous) topic communication pattern is used. Data and queue sizes of the subscribed topics are visualized through rqt. Now, I'm wondering if rqt provides an opportunity to visualize a **dotted line** (instead of a line that interpolates between two data packets) in order to see better when a data packet arrived in rqt. Thank you in advance, Francesco

rqt_graph colors and arrows

$
0
0
What is the color code for rqt_graph? And do the bi-directional arrows mean a service between two nodes or just that the node subscribes to AND publishes to the other node or both? Is there some sort legend for colors, shapes, arrows etc. ? Thank you

Images in .ui file not showing up when python based plugin loaded into rqt.

$
0
0
Hi I created a .ui file with a few buttons icons in them (.jpg files). I am able to see these buttons withe their icons/images fine in QT Designer. However when I catkin_make and load the plugin (python based) into rqt, the images are not shown, just the buttons show up. Thoughts as to why images are not showing up? The button images, .qrc and .ui files are in a resource folder. If I am able to pick up the .ui file, it should find the images too! Thanks

rospy rqt - fullscreen?

$
0
0
Hi again, I need to make an RQT plugin use the full display. I don't want to have a title bar, even task bars of the underlying linux shall be hidden. This is dueto the fact that the resolution of the physical display is pretty small and I don't want to lose too much space to unneeded elements. Do you have an idea on how I can achieve this? Thanks! Cheers, Hendrik

install rqt on fuerte from source, Help

$
0
0
Hello, As a begginer, im having some problems with ros operating. Im trying to install rqt on raspi with fuerte from source. Im following this instructions Build from source Clone the git repositories qt_gui_core and rqt Checkout the branch fuerte-devel for both repositories Compile via rosmake rqt But i cant manage to finally install it, i get some errors and i que dont really know how to execute each step. Could anyone give me some more concrete instructions to get it right? Thanks a lot

Rosparam in RqtGui

$
0
0
Hi, is there a way in Ros to implement a funcition to get/set parameter of rosparam server similar to rosservice in python? Thanks

Use rqt plugins as widgets in a "bigger" GUI

$
0
0
Is it possible to widget-like embed rqt plugins in a "bigger" GUI with robot-specfic parts? The "bigger" GUI might also be a rqt plugin..

qt moc header in different packages

$
0
0
In a typical project is set in CMakeLists.txt catkin_package( INCLUDE_DIRS include LIBRARIES ${PROJECT_NAME} ) if i create a lib and have headers in the include folders that depending packages require.... Now I have an rqt package, where I want to use a custom widget I create in this package in several sub packages. Is there any way to do that? Because now I cannot just add the include folder to INCLUDE_DIRS because the headers lying there might need to be moc'ed... I cannot directly compile against them...

Problem with industrial_msgs/TriState.h

$
0
0
When I run catkin_make(I'm working with rqt). I get this: [ 97%] Building CXX object guiakomips3/CMakeFiles/guiakomips3.dir/include/guiakomips3/moc_akomips3.cxx.o In file included from /opt/ros/hydro/include/industrial_msgs/RobotStatus.h:53:0, from /home/ismael/catkin_workspace/src/guiakomips3/include/guiakomips3/akomips3.h:13, from /home/ismael/catkin_workspace/src/guiakomips3/src/guiakomips3/akomips3.cpp:1: /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected identifier before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected ‘}’ before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected unqualified-id before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected identifier before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected ‘}’ before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected unqualified-id before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:85:59: error: ‘ContainerAllocator’ was not declared in this scope /opt/ros/hydro/include/industrial_msgs/TriState.h:85:77: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:85:79: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:85:84: error: invalid type in declaration before ‘;’ token /opt/ros/hydro/include/industrial_msgs/TriState.h:86:59: error: ‘ContainerAllocator’ was not declared in this scope /opt/ros/hydro/include/industrial_msgs/TriState.h:86:77: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:86:84: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:86:94: error: invalid type in declaration before ‘;’ token /opt/ros/hydro/include/industrial_msgs/TriState.h:89:1: error: expected declaration before ‘}’ token make[2]: *** [guiakomips3/CMakeFiles/guiakomips3.dir/src/guiakomips3/akomips3.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /opt/ros/hydro/include/industrial_msgs/RobotStatus.h:53:0, from /home/ismael/catkin_workspace/build/guiakomips3/include/guiakomips3/../../../../src/guiakomips3/include/guiakomips3/akomips3.h:13, from /home/ismael/catkin_workspace/build/guiakomips3/include/guiakomips3/moc_akomips3.cxx:10: /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected identifier before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected ‘}’ before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected unqualified-id before ‘true’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected identifier before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected ‘}’ before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected unqualified-id before ‘false’ /opt/ros/hydro/include/industrial_msgs/TriState.h:85:59: error: ‘ContainerAllocator’ was not declared in this scope /opt/ros/hydro/include/industrial_msgs/TriState.h:85:77: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:85:79: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:85:84: error: invalid type in declaration before ‘;’ token /opt/ros/hydro/include/industrial_msgs/TriState.h:86:59: error: ‘ContainerAllocator’ was not declared in this scope /opt/ros/hydro/include/industrial_msgs/TriState.h:86:77: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:86:84: error: template argument 1 is invalid /opt/ros/hydro/include/industrial_msgs/TriState.h:86:94: error: invalid type in declaration before ‘;’ token /opt/ros/hydro/include/industrial_msgs/TriState.h:89:1: error: expected declaration before ‘}’ token make[2]: *** [guiakomips3/CMakeFiles/guiakomips3.dir/include/guiakomips3/moc_akomips3.cxx.o] Error 1 make[1]: *** [guiakomips3/CMakeFiles/guiakomips3.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed So, what is the problem?, I just included the library "industrial_msgs/RobotStatus.h", and it shows this error. I tried updating industrial_msgs... akomips3.cpp #include "guiakomips3/akomips3.h" #include #include #include #include #include #include #include "ikfast_services/IK.h" #include "ikfast_services/FK.h" #include #include #include #include #include #include #include akomips3.h #ifndef guiakomips3__GUIPS3_H #define guiakomips3__GUIPS3_H #include #include #include #include #include #include #include #include #include #include #include #include "ikfast_services/IK.h" #include "ikfast_services/FK.h" #include #include #include #include #include #include

Creating an RVIZ plugin to add semantic information to a map

$
0
0
I repeat [this question](http://answers.ros.org/question/40468/creating-an-rviz-plugin-for-a-new-display-type/) posted 2 years ago, except that we need a plugin for a different purpose. We plan to create a graphical editor to add semantic information to 2D/3D maps, and a RViz plugin could be the ideal solution. Rqt plugins look great for simple interfaces, but we need the fully-fledged 3D interface that RViz provides. So it's still not recommended to make a RViz plugins? I already started a plugin, reusing rqt_nav_view to load a 2D map, but I'm afraid that make it fully 3D will be a lot of development effort, and I don't have enough time. Thanks for any input!

remapping in rqt_plugins

$
0
0
Is that possible? If I launch an rqt node with tag that does not appear to work... Is it supposed to? Update with respect to @Dirk Thomas Comment: Basically, I wanted an image_viewer with a fixed topic (for later adding some fancy overlays and so on...). I took the rqt_image_view (indeed C++!) as start point removed the topic spinner and related functions and subscribed the image_transport from a fixed topic. Works perfectly if the "hard-coded" topic exists. However, I did not manage to remap the topic in a launch file. So far i tried 2 things (Both work with "hard-coded" topic but not with remap): 1) Remapping in launch file using the phyton script for stand alone launching my_plugin: #!/usr/bin/env python import sys from rqt_gui.main import Main main = Main() sys.exit(main.main(sys.argv, standalone='my_plugin')) Launch file: 2) Remapping for rqt_gui and load my_plugin into rqt_gui Edit 28.08.2014: Anyone?

how to make a ROS Map a background for rqt gui

$
0
0
i'm programming a GUI with QT which should run in RQT and have a ROS MAP as a background. I tried using map_server to launch the map but then i get the warning in QT : it is not safe to use pixmaps outside the GUI. I'm totally confused how to combine ros, qt and rqt together so if there is any example or explanation on this subject i would really appreciate it. thanks in advance.
Viewing all 255 articles
Browse latest View live