Replaced obj_frame_prefix by object_prefix

This commit is contained in:
matlabbe 2016-06-13 11:21:36 -04:00
parent 881f70377f
commit 48e6ea0147
3 changed files with 4 additions and 6 deletions

View File

@ -34,12 +34,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using namespace find_object;
FindObjectROS::FindObjectROS(const std::string & objFramePrefix, QObject * parent) :
FindObjectROS::FindObjectROS(QObject * parent) :
FindObject(true, parent),
objFramePrefix_("object")
{
ros::NodeHandle pnh("~"); // public
pnh.param("object_prefix", objFramePrefix_, objFramePrefix_);
ROS_INFO("object_prefix = %s", objFramePrefix_.c_str());
ros::NodeHandle nh; // public

View File

@ -44,7 +44,7 @@ class FindObjectROS : public find_object::FindObject
Q_OBJECT;
public:
FindObjectROS(const std::string & objPrefix, QObject * parent = 0);
FindObjectROS(QObject * parent = 0);
virtual ~FindObjectROS() {}
public Q_SLOTS:

View File

@ -74,7 +74,6 @@ int main(int argc, char** argv)
std::string sessionPath;
settingsPath = QDir::homePath().append("/.ros/find_object_2d.ini").toStdString();
bool subscribeDepth = false;
std::string objFramePrefix = "object";
ros::NodeHandle nh("~");
@ -83,14 +82,12 @@ int main(int argc, char** argv)
nh.param("session_path", sessionPath, sessionPath);
nh.param("settings_path", settingsPath, settingsPath);
nh.param("subscribe_depth", subscribeDepth, subscribeDepth);
nh.param("obj_frame_prefix", objFramePrefix, objFramePrefix);
ROS_INFO("gui=%d", (int)gui);
ROS_INFO("objects_path=%s", objectsPath.c_str());
ROS_INFO("session_path=%s", sessionPath.c_str());
ROS_INFO("settings_path=%s", settingsPath.c_str());
ROS_INFO("subscribe_depth = %s", subscribeDepth?"true":"false");
ROS_INFO("obj_frame_prefix = %s", objFramePrefix.c_str());
if(settingsPath.empty())
{
@ -114,7 +111,7 @@ int main(int argc, char** argv)
// Load settings, should be loaded before creating other objects
Settings::init(settingsPath.c_str());
FindObjectROS * findObjectROS = new FindObjectROS(objFramePrefix);
FindObjectROS * findObjectROS = new FindObjectROS();
if(!sessionPath.empty())
{
if(!objectsPath.empty())