Skip to content

Commit

Permalink
Fix view angle plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Jenn Nguyen <[email protected]>
  • Loading branch information
jennuine committed Jan 31, 2023
1 parent af73ebe commit d38866c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/gui/plugins/view_angle/ViewAngle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void ViewAngle::LoadConfig(const tinyxml2::XMLElement *)
this->dataPtr->moveToModelService = "/gui/move_to/model";
this->dataPtr->node.Advertise(this->dataPtr->moveToModelService,
&ViewAngle::OnMoveToModelService, this);
ignmsg << "Move to model service on ["
gzmsg << "Move to model service on ["
<< this->dataPtr->moveToModelService << "]" << std::endl;

gz::gui::App()->findChild<
Expand Down Expand Up @@ -260,7 +260,7 @@ void ViewAngle::OnViewControlReferenceVisual(bool _enable)
[](const msgs::Boolean &/*_rep*/, const bool _result)
{
if (!_result)
ignerr << "Error setting view controller reference visual" << std::endl;
gzerr << "Error setting view controller reference visual" << std::endl;
};

msgs::Boolean req;
Expand All @@ -277,12 +277,12 @@ void ViewAngle::OnViewControlSensitivity(double _sensitivity)
[](const msgs::Boolean &/*_rep*/, const bool _result)
{
if (!_result)
ignerr << "Error setting view controller sensitivity" << std::endl;
gzerr << "Error setting view controller sensitivity" << std::endl;
};

if (_sensitivity <= 0.0)
{
ignerr << "View controller sensitivity must be greater than 0" << std::endl;
gzerr << "View controller sensitivity must be greater than 0" << std::endl;
return;
}

Expand Down Expand Up @@ -324,7 +324,7 @@ bool ViewAngle::OnMoveToModelService(const gz::msgs::GUICamera &_msg,
auto visualToMove = scene->VisualByName(_msg.name());
if (nullptr == visualToMove)
{
ignerr << "Failed to get visual with ID ["
gzerr << "Failed to get visual with ID ["
<< _msg.name() << "]" << std::endl;
_res.set_data(false);
return false;
Expand All @@ -338,7 +338,7 @@ bool ViewAngle::OnMoveToModelService(const gz::msgs::GUICamera &_msg,
}
catch(std::bad_variant_access &_e)
{
ignerr << "Failed to get gazebo-entity user data ["
gzerr << "Failed to get gazebo-entity user data ["
<< visualToMove->Name() << "]" << std::endl;
_res.set_data(false);
return false;
Expand All @@ -358,7 +358,7 @@ bool ViewAngle::OnMoveToModelService(const gz::msgs::GUICamera &_msg,
[](const msgs::Boolean &/*_rep*/, const bool _result)
{
if (!_result)
ignerr << "Error setting view controller" << std::endl;
gzerr << "Error setting view controller" << std::endl;
};

msgs::StringMsg req;
Expand All @@ -375,7 +375,7 @@ bool ViewAngle::OnMoveToModelService(const gz::msgs::GUICamera &_msg,
}
else
{
ignerr << "Unknown view controller selected: " << str << std::endl;
gzerr << "Unknown view controller selected: " << str << std::endl;
_res.set_data(false);
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/gui/plugins/view_angle/ViewAngle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "qrc:/qml"

ColumnLayout {
Layout.minimumWidth: 320
Layout.minimumHeight: 530
Layout.minimumHeight: 650
anchors.fill: parent

ToolBar {
Expand Down Expand Up @@ -217,7 +217,7 @@ ColumnLayout {
id: viewControlSensitivityLabel
text: "View control sensitivity"
}
IgnSpinBox {
GzSpinBox {
id: viewControlSensitivitySpinBox
Layout.fillWidth: true
value: 1.0
Expand Down

0 comments on commit d38866c

Please sign in to comment.