Ask Your Question

Xpecttrum's profile - activity

2014-04-28 23:41:02 -0500 received badge  Supporter (source)
2013-05-31 04:10:51 -0500 received badge  Editor (source)
2013-05-31 04:10:22 -0500 answered a question hokuyo node laser message publishing

Hi there, I was having the same problem, and changing the intensities to ranges it worked, try this:

#include "ros/ros.h"
#include "std_msgs/String.h"
#include "sensor_msgs/LaserScan.h"

void scanValues(const sensor_msgs::LaserScan laser)
{
    fprintf(stderr,"\n -------- size[%d] ---------- ", laser.ranges.size());
    for (unsigned int i=0; i<laser.ranges.size();i++)
    {
        fprintf(stderr,"range[%d]=[%f]: ", i, laser.ranges[i]);

    }
}

int main(int argc, char **argv)
{
  ros::init(argc, argv, "hLaserReader");
  ros::NodeHandle n;
  ros::Subscriber hokuyoSubscriber = n.subscribe("/scan", 1, scanValues);
  ros::spin();
  return 0;
}
2012-10-26 06:35:28 -0500 answered a question how to display a mesh with texture in RViz?

I have the same problem, I am using markers to display a mesh that comes form a .3ds file. The mesh is shown correctly, but without texture.

If I don't set the colors, it appears in black, if I set colors it appear the entire mesh in that color.

I know that the .3ds file carries the color information, is there anyway to show it properly in Rviz?

Regards.