Skip to main content
2 votes

Where is the preffered position to put a simple control loop in a ROS2 Node (C++) for obstacle avoidance

I wouldn't overcomplicate it with what you're trying to do. Its extremely lightweight :-) this isn't ideal especially if the code took a while to run it could cause sensor messages to be missed You'...
Steve Macenski's user avatar
2 votes
Accepted

Where is the preffered position to put a simple control loop in a ROS2 Node (C++) for obstacle avoidance

In general computations specific to the node are implemented as member functions. If it gets way to big you should think about using different threads / callback groups or split your tasks up into ...
rubimat's user avatar
  • 106
1 vote

Mapping not working in gazebo, /scan messages published on wrong topic

I was surprised to see that topic remapping wasn't working, but it looks like the launch files have been written to enable multiple Turtlebots and spawning each one within its own namespace. Each set ...
proan's user avatar
  • 151
1 vote

Mapping not working in gazebo, /scan messages published on wrong topic

you can do 3 things: change the configuration of slam to listen the specific topic of tb2/scan in the slam configuration params remap the topic when slam is launched to listen /tb2/scan instead scan. ...
rdelgadov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible