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

rosNewbie's profile - activity

2021-02-06 17:36:17 -0500 received badge  Famous Question (source)
2021-02-06 02:11:58 -0500 received badge  Student (source)
2020-12-15 14:51:08 -0500 received badge  Famous Question (source)
2020-10-18 13:08:42 -0500 received badge  Famous Question (source)
2020-07-04 14:31:38 -0500 received badge  Notable Question (source)
2020-07-04 14:29:01 -0500 received badge  Notable Question (source)
2020-06-26 06:08:55 -0500 commented question ModuleNotFoundError: No module named 'error'

@gvdhoorn, unfortunately this is not really an option for me. I use a code base from another person. And there this was

2020-06-26 05:48:46 -0500 commented question ModuleNotFoundError: No module named 'error'

@gvdhoorn Do you have any advice how to solve my problem?

2020-06-26 04:45:06 -0500 commented question ModuleNotFoundError: No module named 'error'

@gvdhoorn I use cv_bridge, and did what is told in this answer. I created another catkin_workspace with py3 and source i

2020-06-26 04:42:11 -0500 commented question ModuleNotFoundError: No module named 'error'

I use cv_bridge, and did what is told in this answer. I created another catkin_workspace with py3 and source it as --ext

2020-06-25 18:34:12 -0500 received badge  Popular Question (source)
2020-06-25 10:28:52 -0500 asked a question ModuleNotFoundError: No module named 'error'

ModuleNotFoundError: No module named 'error' When importing rospy in python 3.6 I get the following error: Python 3.6.9

2020-06-15 03:19:04 -0500 received badge  Notable Question (source)
2020-04-29 05:14:00 -0500 received badge  Famous Question (source)
2020-02-21 02:04:23 -0500 received badge  Popular Question (source)
2020-02-20 07:28:34 -0500 commented question Could not find a connection between 'X' and 'Y' because they are not part of the same tree.Tf has two or more unconnected trees.

@Weasfas Thanks for the input. I deleted setting the seq as I don't need this anymore anyway. rosrun rqt_tf_tree rqt_tf_

2020-02-20 05:23:22 -0500 received badge  Notable Question (source)
2020-02-20 05:22:35 -0500 asked a question Could not find a connection between 'X' and 'Y' because they are not part of the same tree.Tf has two or more unconnected trees.

Could not find a connection between 'X' and 'Y' because they are not part of the same tree.Tf has two or more unconnecte

2020-01-17 06:26:43 -0500 received badge  Popular Question (source)
2020-01-08 08:31:09 -0500 marked best answer Publishing a vector of point clouds

I successfully published pointclouds by converting them to ROSMsg. But is it somehow possible to publish a vector containing multiple pointclouds?

I tried this:

pcl::PointCloud<ClassPoint> out;
 ....
sensor_msgs::PointCloud2 out_msg;
pcl::toROSMsg(out, out_msg);

std::vector<sensor_msgs::PointCloud2> clouds(2); 
clouds[0] = out_msg;
out_msg.header.frame_id = corner_frame_name;

pub_merged_clouds.publish(clouds);

while I got

pub_merged_clouds = nh.advertise<std::vector<sensor_msgs::PointCloud2>>(merged_clouds_topic, 1);

This unfortunately doesn't work. I get the following error when compiling

error: ‘const class std::vector<sensor_msgs::PointCloud2_<std::allocator<void> > >’ has no member named ‘__getMD5Sum’
     return m.__getMD5Sum().c_str();

Is there a way to do this? Thanks alot!

2020-01-08 08:31:03 -0500 commented answer Publishing a vector of point clouds

@gvdhoorn @pavel92 Thank you both for your help! This really helped. Now I now how to create my own msg type. But as gvd

2020-01-08 03:10:57 -0500 received badge  Popular Question (source)
2020-01-07 13:03:43 -0500 commented question Publishing a vector of point clouds

@stevemacenski Thank you for you reply. Could you elaborate? How exactly can I create an own sensor_msgs type?

2020-01-07 03:19:17 -0500 received badge  Enthusiast
2020-01-06 16:52:48 -0500 commented question Publishing a vector of point clouds

@stevemacenski Thank you for you reply. Could you elaborate?

2020-01-06 08:37:43 -0500 edited question Publishing a vector of point clouds

Publishing a vector of point clouds I successfully published pointclouds by converting them to ROSMsg. But is it somehow

2020-01-06 08:37:15 -0500 asked a question Publishing a vector of point clouds

Publishing a vector of point clouds I successfully published pointclouds by converting them to ROSMsg. But is it somehow

2020-01-03 06:32:32 -0500 marked best answer Transform PointCloud2 doesn't work as expected

I tried to transform my pointcloud2 in python like stated here.

But somehow the result is not correct. I am not able to visualize the pointcloud I get as a result in rviz. This is why I tried to just use an empty transformation on my pointcloud and I get some different cloud as a result. Does anyone know what I am doing wrong?

Thanks!

from tf2_sensor_msgs.tf2_sensor_msgs import do_transform_cloud

def transform_pointcloud(self, pointcloud):
    trans = TransformStamped()
    trans.header.stamp = pointcloud.header.stamp
    trans.header.frame_id = pointcloud.header.frame_id
    trans.header.seq = pointcloud.header.seq
    trans.child_frame_id = "corner"
    trans.transform.translation.x = 0
    trans.transform.translation.y = 0
    trans.transform.translation.z = 0
    trans.transform.rotation.x = 0
    trans.transform.rotation.y = 0
    trans.transform.rotation.z = 0
    trans.transform.rotation.w = 0

    newpointcloud = do_transform_cloud(pointcloud, trans)
    return newpointcloud
2020-01-03 06:32:32 -0500 received badge  Scholar (source)
2020-01-03 06:32:30 -0500 received badge  Supporter (source)
2020-01-03 06:10:33 -0500 commented question Transform PointCloud2 doesn't work as expected

@aPonza omg..so stupid from me. This fixed it. Thanks alot!

2020-01-03 00:21:03 -0500 asked a question Transform PointCloud2 doesn't work as expected

Transform PointCloud2 doesn't work as expected I tried to transform my pointcloud2 in python like stated here. But some

2020-01-03 00:21:03 -0500 commented answer How to transform PointCloud2 with TF?

I tried using this method (in python) but it somehow doesn't work as expected. That's why I used a transformation with 0

2020-01-03 00:21:02 -0500 commented answer How to transform PointCloud2 with TF?

I tried using this method (in python) but it somehow doesn't work as expected. That's why I used a transformation with 0