Ask Your Question

tiagoantunes14@gmail.com's profile - activity

2018-03-03 20:53:58 -0500 received badge  Notable Question (source)
2017-03-04 22:14:43 -0500 received badge  Popular Question (source)
2017-03-04 19:19:24 -0500 commented answer How to get laser points in a specific time of a bag

Generic answer was enough! Thanks!

2017-03-04 19:18:53 -0500 received badge  Scholar (source)
2017-03-04 14:24:41 -0500 asked a question How do I get laser range always at the same time?

My code is like bellow! I want to change to get the RANGES[i] always at the same time. Someone knows?! while(ros::ok()) { for (i = 0; i < 540; i++) { if (!clustersScan.laserMsg.ranges.empty()) { RANGES[i] = clustersScan.laserMsg.ranges[i]; } }

if(!clustersScan.laserMsg.ranges.empty()) break;

ros::spinOnce();

}

2017-03-04 14:22:35 -0500 asked a question How to get laser points in a specific time of a bag

I have some code that get the messages and break after there is something inside, but laser ranges data change every time I execute my code. This happens probably cause I get the msg in different periodo of time. I want set a specific time to get it, I mean get the ranges always at the same time.

This how I'm doing now.

while(ros::ok()) {
    for (i = 0; i < 540; i++) {
      if (!clustersScan.laserMsg.ranges.empty()) {
        RANGES[i] = clustersScan.laserMsg.ranges[i];
      }
    }

    if(!clustersScan.laserMsg.ranges.empty()) break;

    ros::spinOnce();
  }
2016-07-04 14:32:57 -0500 answered a question ROS indigo installation error

Try add :80 port after server link: Like: sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-key 0xB01FA116