Fix tf prefix lookup ticket #3949
This commit is contained in:
parent
2f37d1c4f0
commit
80b19428ed
|
@ -51,7 +51,9 @@ RobotStatePublisher::RobotStatePublisher(const Tree& tree)
|
|||
{
|
||||
// get tf prefix
|
||||
NodeHandle n_local("~");
|
||||
n_local.param("tf_prefix", tf_prefix_, string());
|
||||
std::string searched_param;
|
||||
n_local.searchParam("tf_prefix", searched_param);
|
||||
n_local.param(searched_param, tf_prefix_, std::string());
|
||||
|
||||
// build tree solver
|
||||
solver_.reset(new TreeFkSolverPosFull_recursive(tree_));
|
||||
|
|
Loading…
Reference in New Issue