Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/plugins/teleop/Teleop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ void Teleop::LoadConfig(const tinyxml2::XMLElement *_pluginElem)
auto topicElem = _pluginElem->FirstChildElement("topic");
if (nullptr != topicElem && nullptr != topicElem->GetText())
this->SetTopic(topicElem->GetText());
if (auto maxFwd = _pluginElem->FirstChildElement("max_forward_velocity"))
this->SetMaxForwardVel(maxFwd->DoubleText(this->dataPtr->maxForwardVel));
if (auto maxVrt = _pluginElem->FirstChildElement("max_vertical_velocity"))
this->SetMaxVerticalVel(
maxVrt->DoubleText(this->dataPtr->maxVerticalVel));
if (auto maxYaw = _pluginElem->FirstChildElement("max_yaw_velocity"))
this->SetMaxYawVel(maxYaw->DoubleText(this->dataPtr->maxYawVel));
}

App()->findChild<MainWindow *>()->QuickWindow()->installEventFilter(this);
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/teleop/Teleop.hh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace gz::gui::plugins
/// vehicle in the world.
/// ## Configuration
/// * `<topic>`: Topic to publish twist messages to.
/// * `<max_forward_velocity>`: Maximum forward velocity.
/// * `<max_vertical_velocity>`: Maximum vertical velocity.
/// * `<max_yaw_velocity>`: Maximum yaw velocity.
class Teleop_EXPORTS_API Teleop : public Plugin
{
Q_OBJECT
Expand Down
Loading