Re: Sending point cloud to another PC with socket send function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Sending point cloud to another PC with socket send function

denix56
First of all, you are trying to send smart pointer to your cloud instead of cloud itself. I don't know how send the request correctly, but it could cause problems.

18 окт. 2017 г. 5:56 пользователь "Max" <[hidden email]> написал:
Hi, everyone
I want to sent point cloud to another PC with socket. However, I have no
idea about the second variable of send function. Here are some variables
about the point cloud and send function:

typedef pcl::PointXYZRGBA PointT;
pcl::PointCloud<PointT>::Ptr cloud(new pcl::PointCloud<PointT>);

send function:
send(
    _In_ SOCKET s,
    _In_reads_bytes_(len) const char FAR * buf,
    _In_ int len,
    _In_ int flags
    )

Can anyone help me to fix the send function as the following:
send(Socket, &cloud, sizeof(cloud), NULL);

P.S. In fact, maybe I have no idea about how to fill in the "?" about this:
       send(Socket, ?, ?, NULL);

Any help is appreciated.

Thank you very much!
Max



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Max
Reply | Threaded
Open this post in threaded view
|

Re: Sending point cloud to another PC with socket send function

Max
Hello,
I have solved this problem. Thanks for your replying!
                                                              Max



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users