Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

ros service does not start #10

Open
CanCanZeng opened this issue Aug 10, 2018 · 4 comments
Open

ros service does not start #10

CanCanZeng opened this issue Aug 10, 2018 · 4 comments

Comments

@CanCanZeng
Copy link

Hi, thank you for openning this code!

I run this code, but meet some problem.
I find that the "startInfinitam" service does not running.

the caller is :
InfinitamNode::InfinitamNode(int& argc, char** argv)
{
...
std::cout << "calling..." << std::endl;
// Initialize service.
start_infinitam_service_ = node_handle_.advertiseService(
"start_infinitam", &InfinitamNode::startInfinitam, this);

...
}

and the service function is :

bool InfinitamNode::startInfinitam(std_srvs::SetBool::Request& request,
std_srvs::SetBool::Response& response)
{
LOG(INFO) << "startInfinitam start!";
std::cout << "startInfinitam start!" << std::endl;

...
}

the screen out put is
image

I have published the topics the infiniTAM listens to
"/camera/rgb/image_raw"
"/camera/depth/image_raw"

And I can run infiniTAM without ROS

I have no idea how this come, since I am not familiar with ROS, can you give me som advice?

@bhavanajain
Copy link

Hi @CanCanZeng,
I am facing the same issue -- "startInfinitam" service does not run. Were you able to figure out a way to run it?

@CanCanZeng
Copy link
Author

Hi @bhavanajain
Sorry I forget if I solved this problem. I'm not familiar to ROS, so I guess I just use infinitam without ros at last.

@bhavanajain
Copy link

Thanks, I will try to run InfiniTAM without ROS

@bhavanajain
Copy link

Update: I was able to run by calling the service externally using rosservice call /infinitamNode/start_infinitam True

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants