Skip to content

Commit

Permalink
removed topIsLow from FakeFrameGrabber
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Oct 17, 2024
1 parent c74cc06 commit 8f12186
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
15 changes: 0 additions & 15 deletions src/devices/fake/fakeFrameGrabber/FakeFrameGrabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ bool FakeFrameGrabber::read(yarp::os::ConnectionReader& connection)
reply.addString("set_mode <mode>");
reply.addString("set_image <file_name>/off");
reply.addString("available modes: ball, line, grid, size, rand, none, time");
reply.addString("set_topIsLow on/off");
reply.addString("set_noise on/off");
reply.addString("set_snr <snr>");
reply.addString("");
Expand Down Expand Up @@ -163,18 +162,6 @@ bool FakeFrameGrabber::read(yarp::os::ConnectionReader& connection)
}
}
}
else if (command.get(0).asString() == "set_topIsLow")
{
if (command.get(1).asString() == "off") {
m_topIsLow = false;
reply.addString("ack");
} else if (command.get(1).asString() == "on") {
m_topIsLow = true;
reply.addString("ack");
} else {
reply.addString("err");
}
}
else if (command.get(0).asString() == "set_noise")
{
if (command.get(1).asString() == "off") {
Expand Down Expand Up @@ -830,8 +817,6 @@ void FakeFrameGrabber::createTestImage(yarp::sig::ImageOf<yarp::sig::PixelRgb>&
image.pixel(6, 0).g = ttxt[19] - '0';
image.pixel(6, 0).b = ttxt[20] - '0';
}

image.setTopIsLowIndex(m_topIsLow);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Thu Mar 7 17:59:43 2024
// Generated on: Mon Sep 16 16:44:50 2024


#include "FakeFrameGrabber_ParamsParser.h"
Expand Down Expand Up @@ -188,20 +188,6 @@ bool FakeFrameGrabber_ParamsParser::parseParams(const yarp::os::Searchable
prop_check.unput("syncro");
}

//Parser of parameter topIsLow
{
if (config.check("topIsLow"))
{
m_topIsLow = config.find("topIsLow").asBool();
yCInfo(FakeFrameGrabberParamsCOMPONENT) << "Parameter 'topIsLow' using value:" << m_topIsLow;
}
else
{
yCInfo(FakeFrameGrabberParamsCOMPONENT) << "Parameter 'topIsLow' using DEFAULT value:" << m_topIsLow;
}
prop_check.unput("topIsLow");
}

//Parser of parameter physFocalLength
{
if (config.check("physFocalLength"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// This is an automatically generated file. Please do not edit it.
// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.

// Generated on: Thu Mar 7 17:59:43 2024
// Generated on: Mon Sep 16 16:44:50 2024


#ifndef FAKEFRAMEGRABBER_PARAMSPARSER_H
Expand Down Expand Up @@ -120,7 +120,6 @@ class FakeFrameGrabber_ParamsParser : public yarp::dev::IDeviceDriverParams
std::string m_fakeFrameGrabber_rpc_port = {"/fakeFrameGrabber/rpc"};
bool m_mirror = {false};
bool m_syncro = {false};
bool m_topIsLow = {true};
double m_physFocalLength = {3.0};
double m_focalLengthX = {4.0};
double m_focalLengthY = {5.0};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* | | fakeFrameGrabber_rpc_port | string | - | /fakeFrameGrabber/rpc | No | rpc port for the fakeFrameGrabber | |
* | | mirror | bool | - | false | No | mirror height of test image | |
* | | syncro | bool | - | false | No | synchronize producer and consumer, so that all images are used once and only once | |
* | | topIsLow | bool | - | true | No | explicitly set the topIsLow field in the images | |
* | | physFocalLength | double | - | 3.0 | No | Physical focal length | |
* | | focalLengthX | double | - | 4.0 | No | Horizontal component of the focal length | |
* | | focalLengthY | double | - | 5.0 | No | Vertical component of the focal length | |
Expand Down

0 comments on commit 8f12186

Please sign in to comment.