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

七小丘人's profile - activity

2022-02-08 12:03:43 -0500 marked best answer How to get the separate value from the data of pcl::pointxyz ?

I can get the result (x,y,z) through the at function of pcl::PointCloud<pcl::pointxyz>,but I don't know how to get the separate value of x,y,z since my IDE can't go to the definition and I haven't seen related explanation.

std::cout << "x" << u << std::endl;
std::cout << "y" << v << std::endl;
int pcl_index;
 //std::cout << "msg_height = " << point_cloud_msg->height << std::endl;

pcl::PointCloud<pcl::PointXYZ> point_pcl;
pcl::fromROSMsg(*point_cloud_msg, point_pcl);
pcl_index = (v*640) + u; 
//std::cout<< "pcl_index" << pcl_index <<std::endl;
std::cout << "(x,y,z) = " << point_pcl.at(pcl_index) << std::endl;
2021-06-30 08:22:08 -0500 received badge  Nice Question (source)
2020-08-20 10:35:22 -0500 received badge  Famous Question (source)
2019-10-15 21:01:34 -0500 received badge  Famous Question (source)
2019-09-10 08:14:38 -0500 received badge  Famous Question (source)
2019-08-15 00:45:23 -0500 received badge  Famous Question (source)
2019-05-25 16:18:22 -0500 received badge  Famous Question (source)
2019-05-23 17:49:02 -0500 received badge  Famous Question (source)
2019-04-24 09:01:00 -0500 received badge  Famous Question (source)
2019-04-16 08:55:54 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-16 08:53:15 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-16 06:46:13 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-15 23:16:40 -0500 received badge  Notable Question (source)
2019-04-15 22:26:40 -0500 received badge  Popular Question (source)
2019-04-15 21:50:32 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-15 09:12:21 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-15 09:11:07 -0500 edited question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-15 09:03:14 -0500 asked a question How to show pointcloud with pcl method in ros message callback?

How to show pointcloud with pcl method in ros message callback? I want to see the pointcloud by the 2D bounding box, but

2019-04-15 03:53:55 -0500 commented question Can't visualize Pepper's PointCloud using PCL viewer

So, how to show point cloud with pcl? I create the viewer outside the callback but the it does not refresh. Do you mean

2019-04-09 02:11:21 -0500 commented question How to Nest multi service clients to a service server callback?

I did't realize that a ros node can have multiple nodehandles and they refer to the same node. I will try these 3 metho

2019-04-09 02:03:50 -0500 answered a question What is the use of multiple nodehandles

In my opinion, sometimes I need to use a service client in a callback, then I can create a new nodehandle.

2019-04-03 08:18:40 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? The robot is controlled by serial sevices and I need to

2019-03-29 08:13:58 -0500 received badge  Notable Question (source)
2019-03-29 06:59:09 -0500 commented question How to Nest multi service clients to a service server callback?

Sorry for not explaining exactly. My problem is how to pass the nodehandle into sever callback.The code certainly cannot

2019-03-29 06:58:32 -0500 commented question How to Nest multi service clients to a service server callback?

My problem is how to pass the nodehandle into sever callback.The code certainly cannot be executed because the nodehandl

2019-03-29 06:56:22 -0500 commented question How to Nest multi service clients to a service server callback?

My problem is how to pass the nodehandle into sever callback.

2019-03-29 06:56:22 -0500 received badge  Commentator
2019-03-29 05:35:49 -0500 received badge  Notable Question (source)
2019-03-29 02:08:39 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? The robot is controlled by serial sevices and I need to

2019-03-28 22:50:54 -0500 received badge  Popular Question (source)
2019-03-28 21:54:37 -0500 commented question How to Nest multi service clients to a service server callback?

There is something wrong about the edit function, so I attach a picture instead.

2019-03-28 21:53:56 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, argv, "D

2019-03-28 21:53:24 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, argv, "D

2019-03-28 21:51:39 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, argv, "DobotTask

2019-03-28 21:49:51 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() {

2019-03-28 21:49:32 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() {

2019-03-28 09:05:20 -0500 received badge  Notable Question (source)
2019-03-28 08:00:23 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() {

2019-03-28 07:58:55 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() {

2019-03-28 07:56:37 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() {

2019-03-28 07:54:17 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ro

2019-03-28 07:53:46 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(

2019-03-28 07:53:24 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, ar

2019-03-28 07:53:00 -0500 received badge  Associate Editor (source)
2019-03-28 07:53:00 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, argv, "Dob

2019-03-28 07:52:39 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service clients to a service server callback? int main() { ros::init(argc, argv, "DobotTask")

2019-03-28 07:47:51 -0500 edited question How to Nest multi service clients to a service server callback?

How to Nest multi service client to a service server callback? int main() { ros::init(argc, argv, "DobotTask"); ros::

2019-03-28 07:44:56 -0500 asked a question How to nest serial service clients to a service server?

How to nest serial service clients to a service server? int main() { ros::init(argc, argv, "DobotTask"); ros::NodeHa

2019-03-28 07:43:27 -0500 asked a question How to Nest multi service clients to a service server callback?

How to Nest multi service client to a service server callback? int main() { ros::init(argc, argv, "DobotTask"); ros::

2019-03-28 03:24:46 -0500 received badge  Notable Question (source)