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

Sagexs's profile - activity

2020-10-16 03:59:46 -0500 commented answer Converting a XYZ Point cloud to a depth image

... he checks the depth for nan value According to the IEEE standard, NaN values have the odd property that comparison

2018-09-20 10:25:44 -0500 received badge  Famous Question (source)
2018-09-20 10:25:44 -0500 received badge  Notable Question (source)
2018-01-03 05:44:51 -0500 received badge  Enthusiast
2018-01-02 12:09:20 -0500 received badge  Popular Question (source)
2018-01-02 06:35:25 -0500 edited question Gazebo, camera 3d point to pixel

Gazebo, camera 3d point to pixel Hi guy's, I have implemented a gazebo model with a stereo camera plugin. I have got a

2018-01-02 06:35:25 -0500 received badge  Editor (source)
2018-01-02 06:34:30 -0500 edited question Gazebo, camera 3d point to pixel

Gazebo, camera 3d point to pixel Hi guy's, I have implemented a gazebo model with a stereo camera plugin. I have got a

2018-01-01 07:18:51 -0500 asked a question Gazebo, camera 3d point to pixel

Gazebo, camera 3d point to pixel Hi guy's, I have implemented a gazebo model with a stereo camera plugin. I have got a

2017-04-18 10:15:07 -0500 answered a question making LINE_LIST lines different colors?

change the ns value like:

void draw_box(PointT min_point, PointT max_point, int number) {
    static ros::Publisher pub_marker = nh_.advertise<visualization_msgs::Marker>("/seg_box",1);
    visualization_msgs::Marker lines;
    lines.header.frame_id = MAIN_FRAME_ID;
    lines.header.stamp = ros::Time::now();
    lines.type = visualization_msgs::Marker::LINE_LIST;
    lines.action = visualization_msgs::Marker::ADD;
    lines.scale.x = 0.01;
    lines.scale.y = 0.01;
    lines.color.a = 1.0;

    std::stringstream ss;
    ss << number;

    lines.ns = "my lines_" + ss.str();
    lines.id = 1;

    geometry_msgs::Point pt1;
    pt1.x = min_point.x;
    pt1.y = min_point.y;
    pt1.z = min_point.z;

    geometry_msgs::Point pt2;
    pt2.x = min_point.x;
    pt2.y = min_point.y;
    pt2.z = max_point.z;

    geometry_msgs::Point pt3;
    pt3.x = max_point.x;
    pt3.y = min_point.y;
    pt3.z = min_point.z;

    geometry_msgs::Point pt4;
    pt4.x = max_point.x;
    pt4.y = min_point.y;
    pt4.z = max_point.z;

    geometry_msgs::Point pt5;
    pt5.x = min_point.x;
    pt5.y = max_point.y;
    pt5.z = min_point.z;

    geometry_msgs::Point pt6;
    pt6.x = min_point.x;
    pt6.y = max_point.y;
    pt6.z = max_point.z;

    geometry_msgs::Point pt7;
    pt7.x = max_point.x;
    pt7.y = max_point.y;
    pt7.z = min_point.z;

    geometry_msgs::Point pt8;
    pt8.x = max_point.x;
    pt8.y = max_point.y;
    pt8.z = max_point.z;

    lines.points.push_back(pt1);
    lines.points.push_back(pt2);
    lines.points.push_back(pt1);
    lines.points.push_back(pt3);
    lines.points.push_back(pt3);
    lines.points.push_back(pt4);
    lines.points.push_back(pt2);
    lines.points.push_back(pt4);

    lines.points.push_back(pt5);
    lines.points.push_back(pt6);
    lines.points.push_back(pt5);
    lines.points.push_back(pt7);
    lines.points.push_back(pt7);
    lines.points.push_back(pt8);
    lines.points.push_back(pt8);
    lines.points.push_back(pt6);


    lines.points.push_back(pt2);
    lines.points.push_back(pt6);
    lines.points.push_back(pt1);
    lines.points.push_back(pt5);
    lines.points.push_back(pt4);
    lines.points.push_back(pt8);
    lines.points.push_back(pt3);
    lines.points.push_back(pt7);



    if (number == 0) {
        lines.color.r = 1.0f;
    }
    else if (number == 1) {
        lines.color.g = 1.0f;
    }   else if (number == 2) {
        lines.color.b = 1.0f;
    }else if (number == 3) {
        lines.color.b = 1.0f;
        lines.color.g = 1.0f;
    }else if (number == 4) {
        lines.color.r = 1.0f;
        lines.color.g = 1.0f;
    }else if (number == 5) {
        lines.color.r = 1.0f;
        lines.color.b = 1.0f;
    }else if (number > 5) {
        lines.color.r = 1.0f;
        lines.color.g = 1.0f;
        lines.color.b = 1.0f;
    }

    pub_marker.publish(lines);

}
2017-03-21 05:17:38 -0500 received badge  Student (source)
2016-09-14 07:35:45 -0500 answered a question How do I convert a mesh to a pointcloud for use with pcl ICP

have a look at https://github.com/PointCloudLibrary/... it samples point on the surface

2016-07-03 05:09:09 -0500 received badge  Popular Question (source)
2016-07-03 05:09:09 -0500 received badge  Notable Question (source)
2016-07-03 05:09:09 -0500 received badge  Famous Question (source)
2016-03-21 03:30:00 -0500 commented question How to build OpenCV extra module while OpenCV is installed with ros

Unfortunately not

2016-03-16 12:23:59 -0500 asked a question install an extra module for opencv while opencv is installed with ros

Hey!

I try to install an extra module for opencv with the following commands:

$ cd <opencv_build_directory>
$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>
$ make -j5

where is the <opencv_build_directory> and <opencv_source_directory> if opencv is install with ros in Ubuntu?

Best regards!

2016-03-16 12:23:59 -0500 asked a question How to build OpenCV extra module while OpenCV is installed with ros

Hey guy's!

I have installed ROS on my computer and this include opencv. Now I would like to a an extra module for opencv:

https://github.com/tolgabirdal/opencv...

The README sayed that I shall execute following commands:

$ cd <opencv_build_directory>
$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>
$ make -j5

where is the <opencv_build_directory> and the <opencv_source_directory> if opencv is installed with ros?

Best regards!