39 int main(
int argc,
char** argv)
47 nh.
param(
"size", size, size);
48 info.
width = size * 2;
54 nh.
param(
"radius", radius, radius);
64 bool publish_updates =
true;
65 nh.
param(
"updates", publish_updates, publish_updates);
78 bounds.
touch(i.x, i.y);
83 if (x > max_x || x < 0.0) dx *= -1;
84 if (
y > max_y ||
y < 0.0) dy *= -1;
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
TFSIMD_FORCE_INLINE const tfScalar & y() const
void init(ros::NodeHandle &nh, const std::string &nav_grid_topic="grid", const std::string &occupancy_grid_topic="costmap", const std::string &update_area_topic="update_area", bool publish_updates=true, ros::Duration full_publish_cycle=ros::Duration(0), ros::Duration update_publish_cycle=ros::Duration(0))
void touch(unsigned intx, unsigned inty)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
void setInfo(const NavGridInfo &new_info) override
TFSIMD_FORCE_INLINE const tfScalar & x() const
void setValue(const unsigned int x, const unsigned int y, const T &value) override
ROSCPP_DECL void spinOnce()