MCPcopy Create free account
hub / github.com/KumarRobotics/sloam / main

Function main

sloam/src/core/inputNode.cpp:293–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293int main(int argc, char **argv)
294{
295 ros::init(argc, argv, "sloam");
296 ros::NodeHandle n("sloam");
297 InputManager in(n);
298 // ros::spin();
299
300 ros::Rate r(20); // 10 hz
301 while (ros::ok())
302 {
303 for (auto i = 0; i < 10; ++i)
304 {
305 ros::spinOnce();
306 if (i % 5 == 0)
307 in.Run();
308 r.sleep();
309 }
310 }
311
312 return 0;
313}

Callers

nothing calls this directly

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected