Ask Your Question

usamamaq's profile - activity

2019-08-30 01:39:51 -0500 received badge  Popular Question (source)
2019-08-26 03:27:25 -0500 received badge  Teacher (source)
2019-08-24 08:35:26 -0500 commented answer which best IDEs with ROS

Yes i am happy with it.

2019-08-23 11:52:55 -0500 commented question Does octomap calcNumNodes() give total number of occupied+free voxels?

So up till now what i have underatood is that everytime updatenode() is done with occupied or free cells it prune the vo

2019-08-23 11:52:43 -0500 commented question Does octomap calcNumNodes() give total number of occupied+free voxels?

So up till now what i have underatood is that everytime updatenode() is done with occupied or free cells it prune the vo

2019-08-23 07:56:57 -0500 edited question Does octomap calcNumNodes() give total number of occupied+free voxels?

Does octomap calcNumNodes() give toatal number of occupied+free voxels? Hello i am working with ros octomap library. Oct

2019-08-23 00:27:13 -0500 commented answer which best IDEs with ROS

I have extensively used PyCharm for python codes. Its a great tool. Still using it. But have not used for ROS (C++) pack

2019-08-23 00:24:50 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

For now your code in navdata callback is small so you can think you are publishing velocity at 200 Hz because navdata is

2019-08-22 17:42:20 -0500 received badge  Rapid Responder (source)
2019-08-22 17:42:20 -0500 answered a question which best IDEs with ROS

I started with Eclipe but got into a lot of issues in importing a ROS package and then compiling it. I switched to CLi

2019-08-22 17:33:34 -0500 commented question how to save octomap to a 2D occupancyGrid map?

octomap_server publish nav_msgs/OccupancyGrid. Link. Downprojected 2D occupancy map from the 3D map. Be sure to rema

2019-08-22 17:19:24 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

One more thing: Why you want to specifically get 20 msgs before updating velocity message. You want to control the ardro

2019-08-22 17:10:03 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok if your velocity and navdata message are being published asynchronously then this can happen or can be many other rea

2019-08-22 17:09:53 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok if your velocity and navdata message are being published asynchronously then this can happen or can be many other rea

2019-08-22 17:07:41 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok if your velocity and navdata message are being published asynchronously then this can happen or can ne many other rea

2019-08-22 17:07:41 -0500 received badge  Commentator
2019-08-22 16:43:11 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Thats how i would have done. class main_control_vel(): def __init__(self) self.velocity =Twist()

2019-08-22 16:41:38 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. class main_control_vel(): def __init__(self) self.veloc

2019-08-22 16:40:23 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. class def __init__(self) self.velocity =Twist() s

2019-08-22 16:39:34 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

I couldnt verify whole. If it solves your problem do let me know i will add this to answer. P.S. i myself was in your

2019-08-22 16:36:46 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main rospy.init_node('go_to', anonymous=True) m_land = main_

2019-08-22 16:35:25 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main 1. Init node rospy.init_node('go_to', anonymous=True)

2019-08-22 16:35:00 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main 1. Init node rospy.init_node('go_to', anonymous=True)

2019-08-22 16:34:31 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main 1. Init node rospy.init_node('go_to', anonymous=True)

2019-08-22 16:34:18 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main 1. Init node rospy.init_node('go_to', anonymous=True)

2019-08-22 16:33:33 -0500 commented question Subscribe to 2 topics and store outputs (different frequencies?)

Ok let me try step by step. Thats how i would have done. main 1. Init node rospy.init_node('go_to', anonymous=True)

2019-08-22 10:48:04 -0500 answered a question Error: No match for call to 'boost::…'

So after loosing precious 6 hours. This is how it is solved. Subscriber was added like this: ros::Subscriber sub4 = nh.

2019-08-22 10:48:04 -0500 received badge  Rapid Responder (source)
2019-08-22 09:45:01 -0500 commented question Error: No match for call to 'boost::…'

Sorry i didn't get it. Isn't this the syntax "topic name, queue size, callback" for node.subscriber like in ROS tutorial

2019-08-22 09:44:44 -0500 commented question Error: No match for call to 'boost::…'

Sorry i didn't get it. Isn't this the syntax "topic name, queue size, callback" for node.subscriber like in ROS tutorial

2019-08-22 09:36:47 -0500 edited question Error: No match for call to 'boost::…'

Error: No match for call to 'boost::…' I am trying to modify another code. Just wanted to add another subscriber to it.

2019-08-22 08:36:29 -0500 asked a question Error: No match for call to 'boost::…'

Error: No match for call to 'boost::…' I am trying to modify another code. Just wanted to add another subscriber to it.

2019-08-20 12:28:35 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Thanks a lot for detailed reply. It has cleared a lot of things.

2019-08-18 09:42:50 -0500 received badge  Popular Question (source)
2019-08-18 09:41:32 -0500 marked best answer Subscriber python CameraInfo and Image

Hello i am new to ros and python. Need little help in how to subscribe to CameraInfo and Image of format sensor_msgs.msg and use its data for further image processing. Here are few lines of code that i am starting with:

from sensor_msgs.msg import CameraInfo, Image
from cv_bridge import CvBridge, CvBridgeError
import cv2

if __name__ == '__main__':
   rospy.init_node('node_name')
   while ~rospy.is_shutdown():
   sub_cam_info = rospy.Subscriber('/camera/rgb/raw_camera_info', CameraInfo)
   sub_rgb = rospy.Subscriber('/camera/rgb/raw_image_color', Image)

From here i want to extract header and data information from 'sub_cam_info' and 'sub_rgb'. Something like this:

camera_info_K = sub_cam_info.K
camera_info_dist_model = sub_cam_info.distortion_model
rgb_image = CvBridge().imgmsg_to_cv2(sub_rgb, encoding="rgb8")

And then use this data for image undistortion:-

rgb_undist = cv2.undistort(rgb_img.data, camera_info_K, camera_info_dist_model)

Mainly i need help in second part i.e. extraction of parameters from CameraInfo and Image msgs. However if someone can help me to sort out body of this whole code! I am already through making up my own CameraInfo and rgb messages, using them for undistortion and publishing on ROS by but now i want to get them from another ROS module and work with them.

Thanks

2019-08-18 09:41:32 -0500 received badge  Scholar (source)
2019-08-18 09:40:23 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

And the way i am using it (periodically) will there be any difference if i use online_clouds or batch_clouds in terms of

2019-08-18 09:37:50 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Ok noted your first point. I will try to bring variation in environment. I am subscribing to batch_clouds and they are

2019-08-18 09:37:27 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Ok noted your first point. I will try to bring variation in environment. I am subscribing to batch_clouds and they are

2019-08-18 09:37:04 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Ok noted your first point. I will try to bring variation in environment. I am subscribing to batch_clouds and they are

2019-08-18 09:36:47 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Ok noted your first point. I will try to bring variation in environment. I am subscribing to batch_clouds and they are

2019-08-18 09:35:56 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Ok noted your first point. I will try to bring variation in environment. I am subscribing to batch_clouds and they are

2019-08-18 09:24:09 -0500 asked a question Does octomap calcNumNodes() give total number of occupied+free voxels?

Does octomap calcNumNodes() give toatal number of occupied+free voxels? Hello i am working with ros octomap library. Oct

2019-08-09 01:43:18 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Thanks a lot @jayess and @felix for upvoting. From your question how long i am processing wha i understand is the rate

2019-08-09 01:42:33 -0500 commented answer RGBDSLAM Pointcloud with wrong transformation

Thanks a lot @jayess and @felix for upvoting. From your question how long i am processing wha i understand is the rate

2019-08-09 01:37:49 -0500 answered a question Subscriber python CameraInfo and Image

Ok as many people has viewed this so i thought of answering my own question. I solved it like this. import message_filt

2019-08-09 01:12:51 -0500 edited question RGBDSLAM Pointcloud with wrong transformation

RGBDSLAM Pointcloud with wrong transformation Hello i am using RGBD SLAM v2. Getting batch clouds published for octomap

2019-08-09 01:12:29 -0500 edited question RGBDSLAM Pointcloud with wrong transformation

RGBDSLAM Pointcloud with wrong transformation Hello i am using RGBD SLAM v2. Getting batch clouds published for octomap

2019-08-09 01:12:00 -0500 received badge  Editor (source)
2019-08-09 01:12:00 -0500 edited question RGBDSLAM Pointcloud with wrong transformation

RGBDSLAM Pointcloud with wrong transformation Hello i am using RGBD SLAM v2. Getting batch clouds published for octomap