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

andresiguano's profile - activity

2012-11-23 04:50:06 -0500 received badge  Famous Question (source)
2012-11-23 04:50:06 -0500 received badge  Popular Question (source)
2012-11-23 04:50:06 -0500 received badge  Notable Question (source)
2012-11-13 09:03:57 -0500 received badge  Famous Question (source)
2012-11-13 09:03:57 -0500 received badge  Popular Question (source)
2012-11-13 09:03:57 -0500 received badge  Notable Question (source)
2012-09-24 07:00:47 -0500 received badge  Famous Question (source)
2012-09-24 07:00:47 -0500 received badge  Popular Question (source)
2012-09-24 07:00:47 -0500 received badge  Notable Question (source)
2012-08-27 12:07:55 -0500 received badge  Famous Question (source)
2012-08-27 12:07:55 -0500 received badge  Popular Question (source)
2012-08-27 12:07:55 -0500 received badge  Notable Question (source)
2012-08-16 03:52:17 -0500 received badge  Notable Question (source)
2012-08-16 03:52:17 -0500 received badge  Popular Question (source)
2012-08-16 03:52:17 -0500 received badge  Famous Question (source)
2012-05-26 08:30:19 -0500 asked a question Is it possible to do serial communication with the device FT232?

hello

I want to make a serial communication with rosserial, adapted the converter FT232. Can you do this or this node only works with arduino?.

2012-05-26 04:39:38 -0500 received badge  Student (source)
2012-05-24 05:05:32 -0500 asked a question How to generate a control signal from the USB port?

hello

I wish to add to my project with USB control. I want to ROS, with USB port write or read a voltage to put into operation a node or to kill him.

The question is: How I can do this task with the tools of ROS?

2012-03-16 12:41:50 -0500 asked a question the cloud doesnt move in z axis

hi I'm getting a pcl with a laser, but the cloud does not move in the z axis.

I made ​​a concatenation of data and the broadcaster TF shipping displacement z.

Annex the code of the cloud.


#include <ros/ros.h>
#include <tf/transform_broadcaster.h>


double c=0;

void transformada()
{

  static tf::TransformBroadcaster br;
  c=c+0.01;
  tf::Transform transform;
  transform.setOrigin( tf::Vector3(0, 0, c) );
  transform.setRotation( tf::Quaternion(1, 0, 0, 0) );
  br.sendTransform(tf::StampedTransform(transform, ros::Time::now(), "world", "laser"));
}


int main(int argc, char** argv)
{
  ros::init(argc, argv, "my_tf_broadcaster");
  ros::NodeHandle node;

  while (ros::ok())
  {
      transformada();
  }
  ros::spin();
  return 0;
}

#include <stdio.h>
#include <fstream>
//ROS
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <laser_geometry/laser_geometry.h>

//PCL_ROS
#include <pcl_ros/point_cloud.h>
#include <pcl_ros/transforms.h>
#include <pcl_ros/impl/transforms.hpp>
//TF
#include <tf/transform_listener.h>
//PCL
#include <pcl/io/pcd_io.h>

ros::Publisher publicador;
laser_geometry::LaserProjection projector_;
pcl::PointCloud<pcl::PointXYZ>::Ptr nubespcl (new pcl::PointCloud<pcl::PointXYZ>);
//pcl::PointCloud<pcl::PointXYZ> nubespcl;
tf::TransformListener *listener_;


void escaneo (const sensor_msgs::LaserScan::ConstPtr& scan_in)
{
    sensor_msgs::PointCloud2::Ptr nubemsg(new sensor_msgs::PointCloud2);
    //sensor_msgs::PointCloud2 nubemsg;
    projector_.transformLaserScanToPointCloud("base_laser",*scan_in,*nubemsg,*listener_);
    pcl::PointCloud<pcl::PointXYZ>::Ptr nubepcl (new pcl::PointCloud<pcl::PointXYZ>);
    publicador.publish(nubemsg);
    pcl::fromROSMsg (*nubemsg,*nubepcl);
    *nubespcl +=*nubepcl;
    }


int main(int argc, char **argv)
{
    ros::init(argc, argv, "nube_de_puntos");
    ros::NodeHandle n;
    std::string toplector = n.resolveName("scan");
    uint32_t size = 20;
    std::string top_nube_pub = n.resolveName("ptos_nube");
    publicador = n.advertise<sensor_msgs::PointCloud2>(top_nube_pub, size);
    listener_=new tf::TransformListener();
    nubespcl->header.frame_id="/laser";
    ros::Subscriber sub = n.subscribe<sensor_msgs::LaserScan>(toplector, size, escaneo);
    ROS_INFO("Listo");

    ros::spin();
    delete listener_;
    pcl::io::savePCDFileASCII ("/home/andres/ros_workspace/nube.pcd",*nubespcl);
    return 0;
}
2012-03-13 12:33:54 -0500 asked a question i dont understand the pcl concepts

I dont understand the pcl concepts. I need an example of how to use pcl in ros with point_cloud.

C++ PLEASE

2012-03-06 09:31:15 -0500 received badge  Scholar (source)
2012-03-05 16:50:12 -0500 asked a question How should make a broadcaster for Hokuyo utm 30lx?

Hello, I want to make a point cloud with laser Hokuyo utm30lx for this work I'm doing a transformation with TF, but I do not understand how to use the broadcaster with the sensor_msgs, I need an example subscription Hokuyo sensor data for the broadcaster .

I need to get the xyz coordinates of the sensor.