ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Maybe it's related to version of boost library, but I use boost::bind when I call a method in a c++ class.
  2. In the example you've show, there is no need for a compute_odom() thread. Standard practice in roscpp is to call ros::spin() from main().
  3. I agree with @Teo Cardoso that you should check the length of the array before accessing it.
  1. Maybe it's related to version of boost library, but I use boost::bind for thread create when I call a method in calling a c++ class.
  2. method.
    1. In the example you've show, there is no need for a compute_odom() thread. Standard practice in roscpp is to call ros::spin() from main().
    2. I agree with @Teo Cardoso that you should check the length of the array before accessing it.
  1. Maybe it's related to version of boost library, but I use boost::bind for thread create when calling a c++ method.
      method.
    1. In the example you've show, there is no need for a compute_odom() thread. Standard practice in roscpp is to call ros::spin() from main().
    2. I agree with @Teo Cardoso that you should check the length of the array before accessing it.