id
stringlengths
15
54
text
stringlengths
3
133k
title
stringclasses
1 value
teleopanel/differenceinbuilddep_3.txt
[ ![ROS Answers logo](/m/ros/media/images/logoros.png?v=28) ](/questions/)
teleopanel/differenceinbuilddep_22.txt
[ edit ](/questions/347516/edit/) [ retag ](/s/questions/347516/retag/) flag offensive [ close ](/questions/347516/close/) merge delete
teleopanel/layouthtml1_86.txt
## Manual Layout
teleopanel/layouthtml1_100.txt
[QLayoutItem](qlayoutitem.html) *CardLayout::count() const { // QList::size() returns the number of QLayoutItems in the list return list.size(); }
teleopanel/layouthtml_43.txt
For further guidance when implementing these functions, see their implementations in existing Qt classes that have similar layout requirements to your new widget.
teleopanel/differenceinbuilddep_53.txt
[ ROS2 Run __params not affecting node ](/question/335016/ros2-run-__params- not-affecting-node/)
teleopanel/packagexml_13.txt
Your system package dependencies are declared in ` package.xml ` . If they are missing or incorrect, you may be able to build from source and run tests on your own machine, but your package will not work correctly when released to the ROS community. Others depend on this information to install the software they need fo...
teleopanel/differenceinbuilddep_28.txt
I don't believe anything has changed wrt ` build_depend ` (at least not in the context you are asking about).
teleopanel/panelplugintutorialh_11.txt
on the top-level rviz::VisualizationFrame, which causes a little asterisk (“*”) to show in the window’s title bar indicating unsaved changes. Q_EMIT configChanged(); } Gray out the control widget when the output topic is empty. drive_widget_->setEnabled( output_topic_ != "" )...
teleopanel/layouthtml1_31.txt
Manages forms of input widgets and their associated labels [ QGraphicsAnchor ](qgraphicsanchor.html)
teleopanel/layouthtml1_2.txt
* [ Qt HOME ](http://qt.digia.com/) * [ DEV ](http://qt-project.org/) * [ DOC ](http://qt-project.org/doc/) * [ BLOG ](http://blog.qt.digia.com/)
teleopanel/packagexml_53.txt
Other than a required ` <buildtool_depends> ` dependency on ` catkin ` , metapackages can only have execution dependencies on packages of which they group.
teleopanel/layouthtml1_4.txt
* API Lookup * [ Class index ](classes.html) * [ Function index ](functions.html) * [ Modules ](modules.html) * [ Namespaces ](namespaces.html) * [ Global Declarations ](qtglobal.html) * [ QML elements ](qdeclarativeelements.html) * Qt Topics * [ Programming with Qt ](qt-basic-concepts...
teleopanel/packagexml_20.txt
### Required Tags
teleopanel/layouthtml_13.txt
![Two-column grid with five child widgets](qgrid-m.png)
teleopanel/layouthtml1_73.txt
If we apply stretch factors to each widget, they will be laid out in proportion (but never less than their minimum size hint), e.g.
teleopanel/layouthtml1_22.txt
## Introduction
teleopanel/layouthtml1_15.txt
* [ Home ](index.html) * Layout Management
teleopanel/layouthtml1_99.txt
First we define ` count() ` to fetch the number of items in the list.
teleopanel/packagexml_22.txt
* ` <name> ` \- The name of the package
teleopanel/layouthtml1_59.txt
The third [ QPushButton ](qpushbutton.html) spans 2 columns. This is possible by specifying 2 as the fifth argument to [ QGridLayout::addWidget ](qgridlayout.html#addWidget) ().
teleopanel/layouthtml1_13.txt
## Examples
teleopanel/layouthtml_32.txt
[QWidget](qwidget.html) *main = new [QWidget](qwidget.html); [QLineEdit](qlineedit.html) *field = new [QLineEdit](qlineedit.html)( main ); [QPushButton](qpushbutton.html) *ok = new [QPushButton](qpushbutton.html)( "OK", main ); [QPushButton](qpushbutton.html) *cancel = new [QPu...
teleopanel/packagexml_74.txt
<package> <name>foo_core</name> <version>1.2.4</version> <description> This package provides foo capability. </description> <maintainer email="ivana@willowgarage.com">Ivana Bildbotz</maintainer> <license>BSD</license> </package>
teleopanel/layouthtml_20.txt
### Stretch Factors
teleopanel/packagexml_100.txt
So now the package.xml files for metapackages are installed, but the requirement that other packages should not depend on metapackages is still enforced by requiring the users do not deviate from the suggested boilerplate CMakeLists.txt code.
teleopanel/packagexml_23.txt
* ` <version> ` \- The version number of the package (required to be 3 dot-separated integers)
teleopanel/layouthtml1_91.txt
Here we present an example in detail. The ` CardLayout ` class is inspired by the Java layout manager of the same name. It lays out the items (widgets or nested layouts) on top of each other, each item offset by [ QLayout::spacing ](qlayout.html#spacing-prop) ().
teleopanel/layouthtml_27.txt
If you need more control over the layout, use a [ QLayout ](qlayout.html) subclass. The layout classes included in Qt are [ QGridLayout ](qgridlayout.html) and [ QBoxLayout ](qboxlayout.html) . ( [ QHBoxLayout ](qhboxlayout.html) and [ QVBoxLayout ](qvboxlayout.html) are trivial subclasses of [ QBoxLayout ](qboxlayout....
teleopanel/packagexml_45.txt
All packages have at least one dependency, a build tool dependency on catkin as the following example shows.
teleopanel/layouthtml1_5.txt
Search index:
teleopanel/packagexml_26.txt
* ` <license> ` \- The software license(s) (e.g. GPL, BSD, ASL) under which the code is released.
teleopanel/panelplugintutorialh_1.txt
Overview ¶ This tutorial shows how to write a simple Panel plugin for RViz. A _panel_ in RViz is a GUI widget which can be docked in the main window or floating. It does not show properties in the “Displays” panel like a _Display_ , but it could show things in the 3D scene. A panel can be a useful place to put a...
teleopanel/panelplugintutorialh_33.txt
# Quick search Enter search terms or a module, class or function name. ©2012, Willow Garage, Inc. | Powered by [ Sphinx 1.3.6 ](http://sphinx- doc.org/) & [ Alabaster 0.7.7 ](https://github.com/bitprophet/alabaster) | [ Page source ](_sources/panel_plugin_tutorial.txt)
teleopanel/layouthtml1_74.txt
![Three widgets with different stretch factors in a row](images/layout2.png)
teleopanel/packagexml_48.txt
<package format="2"> <name>foo_core</name> <version>1.2.4</version> <description> This package provides foo capability. </description> <maintainer email="ivana@willowgarage.com">Ivana Bildbotz</maintainer> <license>BSD</license> <url>http://ros.org/wi...
teleopanel/differenceinbuilddep_61.txt
[ Create Dockerfile for ros2 package : ament_cmake error ](/question/319610/create-dockerfile-for-ros2-package-ament_cmake-error/)
teleopanel/packagexml_85.txt
* ` <test_depend> `
teleopanel/panelplugintutorialh_3.txt
# teleop_panel.h ¶ The full text of teleop_panel.h is here: [ src/teleop_panel.h ](https://github.com/ros-visualization/visualization_tutorials/tree/groovy- devel/rviz_plugin_tutorials/src/teleop_panel.h) Here we declare our new subclass of rviz::Panel. Every panel which can be added via the Panels/Add_New_Panel m...
teleopanel/packagexml_61.txt
Older catkin pakages use format 1. If the ` <package> ` tag has no ` format ` attribute, it is a format 1 package. Use format 2 for new packages.
teleopanel/layouthtml1_62.txt
### Tips for Using Layouts
teleopanel/packagexml_21.txt
There are a minimal set of tags that need to be nested within the ` <package> ` tag to make the package manifest complete.
teleopanel/panelplugintutorialh_27.txt
is shown in the class-chooser dialog and in the Displays panel help area. This section can contain HTML, including hyperlinks, but the markup must be escaped to avoid being interpreted as XML markup. For example a link tag might look like: ` &lt;a href="my-web-page.html"&gt; ` . Display plugins can have multiple _me...
teleopanel/packagexml_3.txt
# Wiki
teleopanel/packagexml_57.txt
### Additional Tags
teleopanel/packagexml_59.txt
* ` <author> ` \- The author(s) of the package
teleopanel/packagexml_56.txt
Note: replace ` <PACKAGE_NAME> ` with the name of the metapackage.
teleopanel/packagexml_94.txt
Other than a required ` <buildtool_depends> ` dependency on ` catkin ` , metapackages can only have run dependencies on packages of which they group.
teleopanel/panelplugintutorialh_18.txt
If the widget is enabled and the velocities are not zero, draw some sweet green arrows showing possible paths that the wheels of a diff-drive robot would take if it stayed at these velocities. if( isEnabled() && (angular_velocity_ != 0 || linear_velocity_ != 0 )) { QPen arrow; arrow...
teleopanel/differenceinbuilddep_20.txt
> build_depend: Declares a rosdep key or ROS package name that this package > requires at build-time.
teleopanel/layouthtml1_70.txt
Widgets are normally created without any stretch factor set. When they are laid out in a layout the widgets are given a share of space in accordance with their [ QWidget::sizePolicy ](qwidget.html#sizePolicy-prop) () or their minimum size hint whichever is the greater. Stretch factors are used to change how much space ...
teleopanel/panelplugintutorialh_23.txt
Q_EMIT outputVelocity( linear_velocity_, angular_velocity_ ); update(); }
teleopanel/packagexml_97.txt
Note: replace ` <PACKAGE_NAME> ` with the name of the metapackage.
teleopanel/packagexml_67.txt
There are a minimal set of tags that need to be nested within the ` <package> ` tag to make the package manifest complete.
teleopanel/panelplugintutorialh_0.txt
# TeleopPanel ¶
teleopanel/differenceinbuilddep_40.txt
As suggested the comments, I submitted a PR to update the tutorial documentation: [ https://github.com/ros2/ros2_document... ](https://github.com/ros2/ros2_documentation/pull/574)
teleopanel/panelplugintutorialh_6.txt
QString output_topic_; The ROS publisher for the command velocity. ros::Publisher velocity_publisher_; The ROS node handle. ros::NodeHandle nh_; The latest velocity values from the drive widget. float linear_velocity_; float angular_velocity_; ...
teleopanel/layouthtml_49.txt
Qt version 3.1.2 ---|---|---
teleopanel/panelplugintutorialh_8.txt
drive_widget_ = new DriveWidget; Lay out the topic field above the control widget. QVBoxLayout* layout = new QVBoxLayout; layout->addLayout( topic_layout ); layout->addWidget( drive_widget_ ); setLayout( layout ); Create a timer for sending the output. Motor controllers w...
teleopanel/packagexml_60.txt
## Format 1 (Legacy)
teleopanel/packagexml_34.txt
* **Test Dependencies** specify only _additional_ dependencies for unit tests. They should never duplicate any dependencies already mentioned as build or run dependencies.
teleopanel/panelplugintutorialh_13.txt
# drive_widget.h ¶ The full text of drive_widget.h is here: [ src/drive_widget.h ](https://github.com/ros-visualization/visualization_tutorials/tree/groovy- devel/rviz_plugin_tutorials/src/drive_widget.h) DriveWidget implements a control which translates mouse Y values into linear velocities and mouse X values int...
teleopanel/layouthtml1_103.txt
[QLayoutItem](qlayoutitem.html) *CardLayout::itemAt(int idx) const { // QList::value() performs index checking, and returns 0 if we are // outside the valid range return list.value(idx); } [QLayoutItem](qlayoutitem.html) *CardLayout::takeAt(int idx) { ...
teleopanel/layouthtml1_82.txt
## Layout Issues
teleopanel/layouthtml_25.txt
![3 stretch factored widgets in a row](layout2.png)
teleopanel/packagexml_32.txt
* **Build Export Dependencies** specify which packages are needed to build libraries against this package. This is the case when you transitively include their headers in public headers in this package (especially when these packages are declared as (CATKIN_)DEPENDS in _catkin_package()_ in CMake).
teleopanel/layouthtml_38.txt
When you make your own widget class, you should also communicate its layout properties. If the widget has a [ QLayout ](qlayout.html) , this is already taken care of. If the widget does not have any child widgets, or uses manual layout, you should reimplement the following [ QWidget ](qwidget.html) member functions:
teleopanel/packagexml_70.txt
* ` <description> ` \- A description of the package contents
teleopanel/differenceinbuilddep_2.txt
[ Hi there! Please sign in ](/account/signin/?next=/question/347516/difference-in-build_depend-in- package-format-3-vs-package-format-2/) [ help ](/help/ "help")
teleopanel/packagexml_41.txt
* ` <exec_depend> `
teleopanel/packagexml_9.txt
Contents
teleopanel/layouthtml1_85.txt
In some cases, it is relevant when a layout is added to a widget. When you set the widget of a [ QDockWidget ](qdockwidget.html) or a [ QScrollArea ](qscrollarea.html) (with [ QDockWidget::setWidget ](qdockwidget.html#setWidget) () and [ QScrollArea::setWidget ](qscrollarea.html#setWidget) ()), the layout must already ...
teleopanel/packagexml_78.txt
* **Build Dependencies** specify which packages are needed to build this package. This is the case when any file from these packages is required at build time. This can be including headers from these packages at compilation time, linking against libraries from these packages or requiring any other resource at build ...
teleopanel/layouthtml1_88.txt
The widget will get an event of type [ QEvent::LayoutRequest ](qevent.html#Type-enum) when the layout needs to be recalculated. Reimplement [ QWidget::event ](qwidget.html#event) () to handle [ QEvent::LayoutRequest ](qevent.html#Type-enum) events.
teleopanel/layouthtml1_107.txt
CardLayout::~CardLayout() { [QLayoutItem](qlayoutitem.html) *item; while ((item = takeAt(0))) delete item; }
teleopanel/packagexml_0.txt
[ ![ros.org](/custom/images/ros_org.png) ](/) | [ About ](http://www.ros.org/about-ros) | [ Support ](/Support) | [ Discussion Forum ](http://discourse.ros.org/) | [ Index ](http://index.ros.org/) | [ Service Status ](http://status.ros.org/) | [ ros @ Robotics Stack Exchange ](https://robotics.stackexchange.com/questi...
teleopanel/layouthtml1_106.txt
The layout takes over responsibility of the items added. Since [ QLayoutItem ](qlayoutitem.html) does not inherit [ QObject ](qobject.html) , we must delete the items manually. In the destructor, we remove each item from the list using ` takeAt() ` , and then delete it.
teleopanel/layouthtml_4.txt
Qt's layout classes were designed for hand-written C++ code, so they're easy to understand and use.
teleopanel/differenceinbuilddep_52.txt
## Related questions
teleopanel/layouthtml1_101.txt
Then we define two functions that iterate over the layout: ` itemAt() ` and ` takeAt() ` . These functions are used internally by the layout system to handle deletion of widgets. They are also available for application programmers.
teleopanel/differenceinbuilddep_26.txt
The tutorial can be edited via PR on github (there's an "edit on github" button at the top of the page)
teleopanel/packagexml_103.txt
* ` <author> ` \- The author(s) of the package
teleopanel/differenceinbuilddep_11.txt
* [ ros2 ](/questions/scope:all/sort:activity-desc/tags:ros2/page:1/)
teleopanel/differenceinbuilddep_13.txt
[ **asked 2020-03-25 10:03:13 -0500 ** ](/questions/347516/revisions/)
teleopanel/packagexml_105.txt
Wiki: catkin/package.xml (last edited 2019-07-24 22:49:57 by [ MaryaBelanger ](/MaryaBelanger "MaryaBelanger @ 2001:16a2:55ca:7400:95a1:c2b7:f6f5:b478\[2001:16a2:55ca:7400:95a1:c2b7:f6f5:b478\]") )
teleopanel/layouthtml_33.txt
If you are not satisfied with the default placement, you can create the layout without a parent and then insert it with addLayout().
teleopanel/layouthtml_16.txt
You can adjust the layout to some extent by calling [ QWidget::setMinimumSize ](qwidget.html#setMinimumSize) () or [ QWidget::setFixedSize ](qwidget.html#setFixedSize) () on the child widgets.
teleopanel/layouthtml1_36.txt
Lines up widgets horizontally [ QLayout ](qlayout.html)
teleopanel/packagexml_82.txt
* ` <buildtool_depend> `
teleopanel/packagexml_6.txt
* Immutable Page * Comments * [ Info ](/action/info/catkin/package.xml?action=info) * [ Attachments ](/action/AttachFile/catkin/package.xml?action=AttachFile) * More Actions: Raw Text Print View Render as Docbook Delete Cache \------------------------ Check Spelling Like Pages Local Site Map \-----...
teleopanel/packagexml_28.txt
<package format="2"> <name>foo_core</name> <version>1.2.4</version> <description> This package provides foo capability. </description> <maintainer email="ivana@osrf.org">Ivana Bildbotz</maintainer> <license>BSD</license> </package>
teleopanel/layouthtml_2.txt
By specifying the logical layout once, you get the following benefits:
teleopanel/layouthtml1_8.txt
results:
teleopanel/differenceinbuilddep_39.txt
[ Jeffrey Kane Johnson ](/users/2517/jeffrey-kane-johnson/) 452 ● 28 ● 40 ● 51 [ https://mapless.ai ](https://mapless.ai "Jeffrey Kane Johnson's website is https://mapless.ai")
teleopanel/layouthtml1_109.txt
void CardLayout::setGeometry(const [QRect](qrect.html) &r) { [QLayout](qlayout.html)::setGeometry(r); if (list.size() == 0) return; int w = r.width() - (list.count() - 1) * spacing(); int h = r.height() - (list.count() - 1) * spacing(); ...
teleopanel/differenceinbuilddep_19.txt
But shouldn't these also have the ` build_depend ` tag? From my reading of [ package format 3 ](https://www.ros.org/reps/rep-0149.html) , it seems like they should also be build dependencies:
teleopanel/layouthtml1_56.txt
[QWidget](qwidget.html) *window = new [QWidget](qwidget.html); [QPushButton](qpushbutton.html) *button1 = new [QPushButton](qpushbutton.html)("One"); [QPushButton](qpushbutton.html) *button2 = new [QPushButton](qpushbutton.html)("Two"); [QPushButton](qpushbutton.html) *butt...
teleopanel/layouthtml1_25.txt
* Positioning of child widgets. * Sensible default sizes for windows. * Sensible minimum sizes for windows. * Resize handling. * Automatic updates when contents change: * Font size, text or other contents of child widgets. * Hiding or showing a child widget. * Removal of child widgets.
teleopanel/differenceinbuilddep_15.txt
[ Jeffrey Kane Johnson ](/users/2517/jeffrey-kane-johnson/) 452 ● 28 ● 40 ● 51 [ https://mapless.ai ](https://mapless.ai "Jeffrey Kane Johnson's website is https://mapless.ai")
teleopanel/layouthtml1_89.txt
## How to Write A Custom Layout Manager