problem getting topic remaps in the code
I am unable to get topic names using
ros::param::get(info_topic, input_info_topic_);
where info_topic and input_info_topic_ are:
std::string input_info_topic_;
std::string namespace_ = pnh_.getNamespace();
std::string info_topic = namespace_ + "/input_info_topic";
A little more detail :
My classes are :
namespace mynamespace
{
class A : public nodelet::Nodelet
{
...
boost::shared_ptr<ClassD> di;
};
}
namespace mynamespace
{
class ClassD
{
//constructor
ClassD(ros::NodeHandle& n, ros::NodeHandle& pnh);
//all the ros::param::get() are in definition of this class.
};
}
When I try to remap topics, it doesn't work. The end result is always an empty string and hence I can't get any images in. What am I doing wrong.
I have tried to provide all the information that might be relevant. If I am missing something kindly please let me know.