id stringlengths 15 54 | text stringlengths 3 133k | title stringclasses 1
value |
|---|---|---|
teleopanel/packagexml_52.txt |
<export>
<metapackage />
</export> | |
teleopanel/packagexml_55.txt |
cmake_minimum_required(VERSION 2.8.3)
project(<PACKAGE_NAME>)
find_package(catkin REQUIRED)
catkin_metapackage() | |
teleopanel/layouthtml1_66.txt | ## Adding Widgets to a Layout | |
teleopanel/panelplugintutorialh_20.txt | painter.setPen( arrow );
Compute and draw polylines for each arrowhead. This code could probably be
more elegant.
float head_len = size / 8.0;
QPointF arrow_head[ 3 ];
float x, y;
if( fabsf( -step_dist + half_track_width * delta_angle ) > .01 )
{
x ... | |
teleopanel/packagexml_98.txt | Metapackage now have CMakeLists.txt files after a discussion about installing
the package.xml files: | |
teleopanel/layouthtml1_87.txt | If you are making a one-of-a-kind special layout, you can also make a custom
widget as described above. Reimplement [ QWidget::resizeEvent
](qwidget.html#resizeEvent) () to calculate the required distribution of sizes
and call [ setGeometry() ](qwidget.html#geometry-prop) on each child. | |
teleopanel/packagexml_11.txt | ## Overview | |
teleopanel/panelplugintutorialh_21.txt | mouse move events if there was previously a mouse-press event while in the
widget.
void DriveWidget::mouseMoveEvent( QMouseEvent* event )
{
sendVelocitiesFromMouse( event->x(), event->y(), width(), height() );
}
Mouse-press events should send the velocities too, of course.
... | |
teleopanel/differenceinbuilddep_57.txt | [ Get all key/value pairs from custom ROS2 message ](/question/370820/get-all-
keyvalue-pairs-from-custom-ros2-message/) | |
teleopanel/differenceinbuilddep_12.txt | * [ dashing ](/questions/scope:all/sort:activity-desc/tags:dashing/page:1/) | |
teleopanel/layouthtml1_12.txt | * [ Programming with Qt ](qt-basic-concepts.html)
* [ Device UIs & Qt Quick ](qtquick.html)
* [ UI Design with Qt ](qt-gui-concepts.html)
* [ Supported Platforms ](supported-platforms.html)
* [ Qt and Key Technologies ](technology-apis.html)
* [ How-To's and Best Practices ](best-practices.html) | |
teleopanel/layouthtml1_19.txt | * Introduction
* Qt's Layout Classes
* Horizontal, Vertical, Grid, and Form Layouts
* Laying Out Widgets in Code
* Tips for Using Layouts
* Adding Widgets to a Layout
* Stretch Factors
* Custom Widgets in Layouts
* Layout Issues
* Manual Layout
* How to Write A Custom Layout Manager
*... | |
teleopanel/layouthtml_23.txt |  | |
teleopanel/panelplugintutorialh_30.txt | # [ Table Of Contents ](index.html)
* TeleopPanel
* Overview
* The Plugin Code
* teleop_panel.h
* teleop_panel.cpp
* drive_widget.h
* drive_widget.cpp
* Building the Plugin
* Exporting the Plugin
* Trying It Out
* Next Steps
| |
teleopanel/packagexml_25.txt | * ` <maintainer> ` \- The name of the person(s) that is/are maintaining the package | |
teleopanel/differenceinbuilddep_45.txt | Follow | |
teleopanel/packagexml_30.txt | The package manifest with minimal tags does not specify any dependencies on
other packages. Packages can have six types of dependencies: | |
teleopanel/packagexml_24.txt | * ` <description> ` \- A description of the package contents | |
teleopanel/layouthtml_46.txt | The widget will get an event with [ type ](qevent.html#type) ` LayoutHint `
when the layout needs to be recalculated. Reimplement [ QWidget::event
](qwidget.html#event) () to be notified of ` LayoutHint ` events. | |
teleopanel/layouthtml1_79.txt | If the preferred height of your widget depends on its actual width (e.g., a
label with automatic word-breaking), set the [ height-for-width
](qsizepolicy.html#hasHeightForWidth) flag in the widget's [ size policy
](qwidget.html#sizePolicy-prop) and reimplement [ QWidget::heightForWidth
](qwidget.html#heightForWidth) ()... | |
teleopanel/panelplugintutorialh_17.txt | {
background = Qt::white;
crosshair = Qt::black;
}
else
{
background = Qt::lightGray;
crosshair = Qt::darkGray;
}
The main visual is a square, centered in the widget’s area. Here we compute
the size of the square and the horizontal and vertical offsets of it.
... | |
teleopanel/layouthtml_36.txt | See the [ Custom Layout ](customlayout.html) page for an in-depth description. | |
teleopanel/packagexml_65.txt |
<package>
</package> | |
teleopanel/layouthtml1_98.txt |
//#include "card.h" | |
teleopanel/packagexml_43.txt | * ` <buildtool_depend> ` | |
teleopanel/packagexml_50.txt | ### Metapackages | |
teleopanel/differenceinbuilddep_66.txt | Please note: ROS Answers requires javascript to work properly, please enable
javascript in your browser, [ here is how
](https://www.google.com/support/bin/answer.py?answer=23852) | |
teleopanel/differenceinbuilddep_0.txt | First time here? Check out the FAQ! | |
teleopanel/layouthtml1_21.txt | The Qt layout system provides a simple and powerful way of automatically
arranging child widgets within a widget to ensure that they make good use of
the available space. | |
teleopanel/layouthtml_34.txt | ## Custom Layouts | |
teleopanel/layouthtml1_16.txt | * A
* A
* A
* [ Print ](javascript:this.print\(\);) | |
teleopanel/differenceinbuilddep_1.txt |
ROS Resources: [ Documentation ](http://wiki.ros.org/) | [ Support
](http://wiki.ros.org/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/questions/tagged/r... | |
teleopanel/differenceinbuilddep_5.txt | The site is read-only. Please transition to use Robotics Stack Exchange | |
teleopanel/differenceinbuilddep_31.txt | [ 
](/users/5184/gvdhoorn/) [ gvdhoorn ](/users/5184/gvdhoorn/) ( 2020-03-25
10:34:34 -0500 ) edit | |
teleopanel/packagexml_46.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>
<buildtool_depend>catkin</buil... | |
teleopanel/packagexml_15.txt | This is the recommended format for new packages. It is also recommended that
older format 1 packages be migrated to format 2. For instructions on migrating
from format 1 to format 2, see [ Migrating from Format 1 to Format 2
](https://docs.ros.org/melodic/api/catkin/html/howto/format2/migrating_from_format_1.html#migra... | |
teleopanel/packagexml_49.txt | More details on dependencies can be found in the catkin API docs [ here
](https://docs.ros.org/melodic/api/catkin/html/howto/format2/catkin_library_dependencies.html)
. | |
teleopanel/packagexml_36.txt | * **Documentation Tool Dependencies** specify documentation tools which this package needs to generate documentation. | |
teleopanel/layouthtml_21.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) () or their minimum
size hint whichever is the greater. Stretch factors are used to change how
much space widge... | |
teleopanel/packagexml_95.txt | Additionally a metapackage has a required, boilerplate CMakeLists.txt file: | |
teleopanel/differenceinbuilddep_59.txt | [ ros2 Dashing: Message frequency lower than expected [closed]
](/question/334183/ros2-dashing-message-frequency-lower-than-expected/) | |
teleopanel/packagexml_66.txt | ### Required Tags | |
teleopanel/differenceinbuilddep_55.txt | [ Slam Toolbox - How is scan data used to build the map?
](/question/371874/slam-toolbox-how-is-scan-data-used-to-build-the-map/) | |
teleopanel/packagexml_62.txt | The format of package.xml is straightforward. | |
teleopanel/layouthtml1_33.txt | Layout where one can anchor widgets together in Graphics View
[ QGridLayout ](qgridlayout.html) | |
teleopanel/layouthtml1_54.txt | ### Laying Out Widgets in Code | |
teleopanel/packagexml_63.txt | ### Basic Structure | |
teleopanel/differenceinbuilddep_33.txt | [ 
](/users/2517/jeffrey-kane-johnson/) [ Jeffrey Kane Johnson
](/users/2517/jeffrey-kane-johnson/) ( 2020-03-25 10:57:04 -0500 ) edit | |
teleopanel/packagexml_80.txt | * **Test Dependencies** specify only _additional_ dependencies for unit tests. They should never duplicate any dependencies already mentioned as build or run dependencies. | |
teleopanel/layouthtml1_29.txt | Lines up child widgets horizontally or vertically
---|---
[ QButtonGroup ](qbuttongroup.html) | |
teleopanel/differenceinbuilddep_34.txt | add a comment | |
teleopanel/packagexml_10.txt | 1. Overview
2. Format 2 (Recommended)
1. Basic Structure
2. Required Tags
3. Dependencies
4. Metapackages
5. Additional Tags
3. Format 1 (Legacy)
1. Basic Structure
2. Required Tags
3. Build, Run, and Test Dependencies
4. Metapackages
5. Additional Tags | |
teleopanel/layouthtml_19.txt | 1. All the widgets will initially be allocated an amount of space in accordance with their [ QWidget::sizePolicy ](qwidget.html#sizePolicy) ().
2. If any of the widgets have stretch factors set, with a value greater than zero, then they are allocated space in proportion to their stretch factor .
3. If any of ... | |
teleopanel/layouthtml1_27.txt | Qt's layout classes were designed for hand-written C++ code, allowing
measurements to be specified in pixels for simplicity, so they are easy to
understand and use. The code generated for forms created using _Qt Designer_
also uses the layout classes. _Qt Designer_ is useful to use when
experimenting with the design of... | |
teleopanel/panelplugintutorialh_7.txt | # teleop_panel.cpp ¶
The full text of teleop_panel.cpp is here: [ src/teleop_panel.cpp
](https://github.com/ros-visualization/visualization_tutorials/tree/groovy-
devel/rviz_plugin_tutorials/src/teleop_panel.cpp)
Here is the implementation of the TeleopPanel class. TeleopPanel has these
responsibilities:
* Act ... | |
teleopanel/packagexml_71.txt | * ` <maintainer> ` \- The name of the person(s) that is/are maintaining the package | |
teleopanel/differenceinbuilddep_69.txt | *[
2020-03-25 10:03:13 -0500
]: 2020-03-25 10:03:13 -0500
*[
2020-03-25 10:56:52 -0500
]: 2020-03-25 10:56:52 -0500
*[
2020-03-25 10:31:35 -0500
]: 2020-03-25 10:31:35 -0500
*[
2020-03-25 10:34:34 -0500
]: 20... | |
teleopanel/layouthtml1_112.txt | ### Further Notes | |
teleopanel/layouthtml1_113.txt | * This custom layout does not handle height for width.
* We ignore [ QLayoutItem::isEmpty ](qlayoutitem.html#isEmpty) (); this means that the layout will treat hidden widgets as visible.
* For complex layouts, speed can be greatly increased by caching calculated values. In that case, implement [ QLayoutItem::in... | |
teleopanel/panelplugintutorialh_16.txt | # drive_widget.cpp ¶
The full text of drive_widget.cpp is here: [ src/drive_widget.cpp
](https://github.com/ros-visualization/visualization_tutorials/tree/groovy-
devel/rviz_plugin_tutorials/src/drive_widget.cpp)
The DriveWidget constructor does the normal Qt thing of passing the parent
widget to the superclass co... | |
teleopanel/packagexml_81.txt | These four types of dependencies are specified using the following respective
tags: | |
teleopanel/layouthtml1_34.txt | Lays out widgets in a grid
[ QGroupBox ](qgroupbox.html) | |
teleopanel/layouthtml1_20.txt | # Layout Management | |
teleopanel/packagexml_96.txt |
cmake_minimum_required(VERSION 2.8.3)
project(<PACKAGE_NAME>)
find_package(catkin REQUIRED)
catkin_metapackage() | |
teleopanel/layouthtml1_55.txt | The following code creates a [ QHBoxLayout ](qhboxlayout.html) that manages
the geometry of five [ QPushButtons ](qpushbutton.html) , as shown on the
first screenshot above: | |
teleopanel/differenceinbuilddep_44.txt | ## Question Tools | |
teleopanel/layouthtml1_60.txt | [ QFormLayout ](qformlayout.html) will add two widgets on a row, commonly a [
QLabel ](qlabel.html) and a [ QLineEdit ](qlineedit.html) to create forms.
Adding a [ QLabel ](qlabel.html) and a [ QLineEdit ](qlineedit.html) on the
same row will set the [ QLineEdit ](qlineedit.html) as the [ QLabel
](qlabel.html) 's buddy... | |
teleopanel/packagexml_5.txt | # Page | |
teleopanel/layouthtml1_65.txt | You can nest layouts using ` addLayout() ` on a layout; the inner layout then
becomes a child of the layout it is inserted into. | |
teleopanel/layouthtml1_40.txt | Blank space in a layout
[ QStackedLayout ](qstackedlayout.html) | |
teleopanel/differenceinbuilddep_41.txt | [ edit ](/s/answers/347531/edit/) flag offensive delete [ link
](/question/347516/difference-in-build_depend-in-package-format-3-vs-package-
format-2/?answer=347531#post-id-347531 "permanent link") more | |
teleopanel/layouthtml_9.txt |  | |
teleopanel/differenceinbuilddep_9.txt | Difference in build_depend in package format 3 vs. package format 2 | |
teleopanel/layouthtml1_57.txt | The code for [ QVBoxLayout ](qvboxlayout.html) is identical, except the line
where the layout is created. The code for [ QGridLayout ](qgridlayout.html) is
a bit different, because we need to specify the row and column position of the
child widget: | |
teleopanel/layouthtml_5.txt | The disadvantage of hand-written layout code is that it isn't very convenient
when you're experimenting with the design of a form and you have to go through
the compile, link and run cycle for each change. Our solution is [ Qt Designer
](designer-manual.html) , a GUI visual design tool which makes it fast and
easy to e... | |
teleopanel/layouthtml_39.txt | * [ QWidget::sizeHint ](qwidget.html#sizeHint) () returns the preferred size of the widget.
* [ QWidget::minimumSizeHint ](qwidget.html#minimumSizeHint) () returns the smallest size the widget can have.
* [ QWidget::sizePolicy ](qwidget.html#sizePolicy) () returns a [ QSizePolicy ](qsizepolicy.html) ; a value d... | |
teleopanel/panelplugintutorialh_9.txt |
output_timer->start( 100 );
Make the control widget start disabled, since we don’t start with an output
topic.
drive_widget_->setEnabled( false );
}
setVel() is connected to the DriveWidget’s output, which is sent whenever it
changes due to a mouse event. This just records the ... | |
teleopanel/packagexml_4.txt | * [ Distributions ](/Distributions)
* [ ROS/Installation ](/ROS/Installation)
* [ ROS/Tutorials ](/ROS/Tutorials)
* [ RecentChanges ](/RecentChanges)
* [ catkin/package.xml ](/catkin/package.xml) | |
teleopanel/layouthtml1_94.txt | In most cases, you will also implement [ minimumSize()
](qlayout.html#minimumSize) . | |
teleopanel/layouthtml1_118.txt | Digia, Qt and their respective logos are trademarks of Digia Plc in Finland
and/or other countries worldwide. All other trademarks are property of their
respective owners. [ Privacy Policy ](http://en.gitorious.org/privacy_policy/
"Privacy Policy") | |
teleopanel/differenceinbuilddep_29.txt | This particular tutorial was added in [ ros2/ros2_documentation#366
](https://github.com/ros2/ros2_documentation/pull/366) and a comment about
this was added ( [ here
](https://github.com/ros2/ros2_documentation/pull/366/files#r339288128) ). | |
teleopanel/layouthtml1_51.txt |  | |
teleopanel/layouthtml1_42.txt | Stack of widgets where only one widget is visible at a time
[ QVBoxLayout ](qvboxlayout.html) | |
teleopanel/layouthtml1_116.txt | The documentation provided herein is licensed under the terms of the [ GNU
Free Documentation License version 1.3 ](http://www.gnu.org/licenses/fdl.html)
as published by the Free Software Foundation. | |
teleopanel/panelplugintutorialh_4.txt | Now we declare overrides of rviz::Panel functions for saving and loading data
from the config file. Here the data is the topic name.
virtual void load( const rviz::Config& config );
virtual void save( rviz::Config config ) const;
Next come a couple of public Qt slots.
public Q_SL... | |
teleopanel/layouthtml1_80.txt | Even if you implement [ QWidget::heightForWidth ](qwidget.html#heightForWidth)
(), it is still a good idea to provide a reasonable sizeHint(). | |
teleopanel/layouthtml_42.txt | Even if you implement heightForWidth(), it is still necessary to provide a
good sizeHint(). The sizeHint() provides the preferred width of the widget,
and it is used by [ QLayout ](qlayout.html) subclasses that do not support
heightForWidth() (both [ QGridLayout ](qgridlayout.html) and [ QBoxLayout
](qboxlayout.html) s... | |
teleopanel/layouthtml1_26.txt | ## Qt's Layout Classes | |
teleopanel/layouthtml1_111.txt |
[QSize](qsize.html) CardLayout::sizeHint() const
{
[QSize](qsize.html) s(0,0);
int n = list.count();
if (n > 0)
s = [QSize](qsize.html)(100,70); //start with a nice default size
int i = 0;
while (i < n) {
[QLayoutItem](qlayoutite... | |
teleopanel/differenceinbuilddep_68.txt | [ none ](/questions/scope:all/sort:activity-desc/tags:none/page:1/) × | |
teleopanel/layouthtml1_117.txt | Documentation sources may be obtained from [ www.qt-project.org
](http://www.qt-project.org) . | |
teleopanel/layouthtml1_32.txt | Represents an anchor between two items in a QGraphicsAnchorLayout
[ QGraphicsAnchorLayout ](qgraphicsanchorlayout.html) | |
teleopanel/layouthtml_3.txt | * Positioning of child widgets.
* Sensible default sizes for top-level widgets.
* Sensible minimum sizes for top-level widgets.
* Resize handling.
* Automatic update when contents change:
* Font size, text or other contents of subwidgets.
* Hiding or showing a subwidget.
* Removal of subwid... | |
teleopanel/packagexml_18.txt | Each package.xml file has the ` <package> ` tag as the root tag in the
document. | |
teleopanel/packagexml_92.txt | It is often convenient to group multiple packages as a single logical package.
This can be accomplished through **metapackages** . A metapackage is a normal
package with the following export tag in the package.xml: | |
teleopanel/packagexml_12.txt | The **package manifest** is an XML file called **package.xml** that must be
included with any catkin-compliant package's root folder. This file defines
properties about the package such as the package name, version numbers,
authors, maintainers, and dependencies on other catkin packages. Note the
concept is similar to ... | |
teleopanel/layouthtml1_63.txt | When you use a layout, you do not need to pass a parent when constructing the
child widgets. The layout will automatically reparent the widgets (using [
QWidget::setParent ](qwidget.html#setParent) ()) so that they are children of
the widget on which the layout is installed. | |
teleopanel/packagexml_75.txt | ### Build, Run, and Test Dependencies | |
teleopanel/layouthtml1_90.txt | An alternative to manual layout is to write your own layout manager by
subclassing [ QLayout ](qlayout.html) . The [ Border Layout ](layouts-
borderlayout.html) and [ Flow Layout ](layouts-flowlayout.html) examples show
how to do this. | |
teleopanel/panelplugintutorialh_12.txt | panel name get saved.
void TeleopPanel::save( rviz::Config config ) const
{
rviz::Panel::save( config );
config.mapSetValue( "Topic", output_topic_ );
}
Load all configuration data for this panel from the given Config object.
void TeleopPanel::load( const rviz::Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.