Go to the documentation of this file.
41 const QString& default_value,
42 const QString& description,
45 bool include_fixed_frame_string)
47 , frame_manager_(nullptr)
48 , include_fixed_frame_string_(include_fixed_frame_string)
57 QString new_string = new_value.toString();
58 if (new_string.size() > 0 && new_string[0] ==
'/')
60 new_string = new_string.right(new_string.size() - 1);
84 std::vector<std::string> std_frames;
86 std::sort(std_frames.begin(), std_frames.end());
93 for (
size_t i = 0; i < std_frames.size(); i++)
101 QString frame =
getValue().toString();
const std::shared_ptr< tf2_ros::Buffer > getTF2BufferPtr()
Helper class for transforming data into Ogre's world frame (the fixed frame).
void fixedFrameChanged()
Emitted whenever the fixed frame changes.
std::string getFrameStd() const
bool include_fixed_frame_string_
void handleFixedFrameChange()
If this property is currently set to FIXED_FRAME_STRING, this emits changed() to let users know that ...
bool setValue(const QVariant &new_value) override
Override from Property to resolve the frame name on the way in.
virtual void addOption(const QString &option)
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...
void addOptionStd(const std::string &option)
QMetaObject::Connection connect(const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
Connect changed() signal to given slot of receiver.
A single element of a property tree, with a name, value, description, and possibly children.
const std::string & getFixedFrame()
Return the current fixed frame name.
virtual bool setValue(const QVariant &new_value)
Set the new value for this property. Returns true if the new value is different from the old value,...
virtual void clearOptions()
static const QString FIXED_FRAME_STRING
FrameManager * frame_manager_
void changed()
Emitted by setValue() just after the value has changed.
void setFrameManager(FrameManager *frame_manager)
TfFrameProperty(const QString &name=QString(), const QString &default_value=QString(), const QString &description=QString(), Property *parent=nullptr, FrameManager *frame_manager=nullptr, bool include_fixed_frame_string=false)
void requestOptions(EditableEnumProperty *property_in_need_of_options)
requestOptions() is emitted each time createEditor() is called.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:03