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

hassanyf's profile - activity

2022-02-22 11:21:38 -0500 received badge  Famous Question (source)
2020-10-27 15:01:57 -0500 received badge  Student (source)
2019-08-07 01:28:07 -0500 received badge  Famous Question (source)
2019-08-07 01:28:07 -0500 received badge  Notable Question (source)
2019-07-14 22:50:16 -0500 received badge  Famous Question (source)
2019-07-14 22:50:16 -0500 received badge  Notable Question (source)
2019-07-14 22:50:16 -0500 received badge  Popular Question (source)
2019-04-18 00:25:34 -0500 asked a question Tutorial for Image Publisher/Subscriber in Python (Video Stream)

Tutorial for Image Publisher/Subscriber in Python (Video Stream) Is there any tutorial or code for image publisher/subsc

2019-03-05 14:52:36 -0500 marked best answer How to do real time hand detection on Kinect V2/ROS

I am very new to Kinect V2 and ROS Indigo. I have installed libfreenect2 and iai_kinect2 from the GitHub pages. After running rostopic list I get a list of topics published by Kinect. I wrote a small code so that it subscribes to a specific topic and displays the camera i.e image_mono

file.py:

#!/usr/bin/python

import roslib
import rospy
import cv2
import sys
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError

class PositionTracker:

    def __init__(self):
        # subscribe to kinect image messages
        self.sub = rospy.Subscriber("kinect2/qhd/image_mono", Image, self.image_callback, queue_size=1)
        self.bridge = CvBridge()

    def image_callback(self,data):
        try:
            cv_image = self.bridge.imgmsg_to_cv2(data)
        except CvBridgeError as e:
            print(e)
        cv2.imshow("Image window", cv_image)
        cv2.waitKey(3)

def main(args):
    ic = PositionTracker()
    rospy.init_node('kinect_tracker')
    try:
        rospy.spin()
    except KeyboardInterrupt:
        print("Shutting down")
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main(sys.argv)

How do I perform real time hand detection and save data sets to a folder with the camera that was opened.

If I type, rostopic echo /kinect2/qhd/image_mono, it gives a 1D array. Any resource/tutorial will be really helpful.

2019-01-10 09:46:45 -0500 received badge  Famous Question (source)
2018-07-27 03:49:01 -0500 received badge  Famous Question (source)
2018-07-27 03:49:01 -0500 received badge  Notable Question (source)
2018-04-11 04:36:34 -0500 received badge  Notable Question (source)
2018-04-10 02:13:27 -0500 received badge  Popular Question (source)
2018-02-13 10:01:28 -0500 received badge  Popular Question (source)
2018-02-01 20:37:15 -0500 received badge  Famous Question (source)
2018-01-29 09:36:49 -0500 asked a question How to open Kinect V2 camera instead of webcam?

How to open Kinect V2 camera instead of webcam? I have a code written in Python and OpenCV. The code works fine on my la

2018-01-25 09:13:02 -0500 commented question How to save multiple images when subscribing to a node?

No, it only crashes inside the def image_calback function

2018-01-25 08:22:32 -0500 asked a question How to save multiple images when subscribing to a node?

How to save multiple images when subscribing to a node? I created a simple function where it subscribes to Kinect V2 IR'

2018-01-25 06:32:13 -0500 commented answer How to capture multiple images from Kinect V2 (ROS)?

I have already defined it globally. But it still overwrites it.

2018-01-24 23:12:09 -0500 commented answer How to capture multiple images from Kinect V2 (ROS)?

Yes I already did that. But if I add any kind of loop inside the def image_calback function, the Kinect IR camera will l

2018-01-24 13:28:45 -0500 received badge  Notable Question (source)
2018-01-24 12:08:32 -0500 edited question How to capture multiple images from Kinect V2 (ROS)?

How to capture multiple images from Kinect V2 (ROS)? I created a small code that opens the Kinect IR camera. I can see t

2018-01-24 12:08:09 -0500 commented answer How to capture multiple images from Kinect V2 (ROS)?

I am saving it as 'image'+str(click)+'.jpg' where click is a variable and will be incremented. I am expecting image0.jpg

2018-01-24 08:57:35 -0500 received badge  Popular Question (source)
2018-01-24 08:19:18 -0500 edited question How to capture multiple images from Kinect V2 (ROS)?

How to capture multiple images from Kinect V2 (ROS)? I created a small code that opens the Kinect IR camera. I can see t

2018-01-24 08:19:18 -0500 received badge  Editor (source)
2018-01-24 08:19:06 -0500 edited question How to capture multiple images from Kinect V2 (ROS)?

How to capture image from Kinect V2 (ROS)? I created a small code that opens the Kinect IR camera. I can see the real ti

2018-01-24 08:16:02 -0500 commented answer How to capture multiple images from Kinect V2 (ROS)?

Thanks! It's working now. I am using cv2.cv.SaveImage('image'+str(click)+'.jpg',bitmap) to save it. but it's not saving

2018-01-24 06:23:47 -0500 received badge  Enthusiast
2018-01-23 04:07:16 -0500 asked a question How to capture multiple images from Kinect V2 (ROS)?

How to capture image from Kinect V2 (ROS)? I created a small code that opens the Kinect IR camera. I can see the real ti

2018-01-20 11:30:49 -0500 received badge  Notable Question (source)
2018-01-19 08:47:22 -0500 received badge  Popular Question (source)
2018-01-18 07:41:18 -0500 asked a question How to do real time hand detection on Kinect V2/ROS

How to do real time hand detection on Kinect V2/ROS I am very new to Kinect V2 and ROS Indigo. I have installed libfreen

2018-01-10 08:40:16 -0500 asked a question How do I install Kinect V2 for Windows on ROS Indigo?

How do I install Kinect V2 for Windows on ROS Indigo? Most of the tutorials I've seen show documentation only for Kinect

2018-01-06 06:23:28 -0500 received badge  Popular Question (source)
2017-12-28 13:44:55 -0500 received badge  Popular Question (source)
2017-12-28 13:21:42 -0500 asked a question How to run VREP simulations using Python scripts?

How to run VREP simulations using Python scripts? I am familiar with Gazebo and can control a model using python scripts

2017-12-23 05:14:47 -0500 asked a question [rospack] Error: package 'script' not found

[rospack] Error: package 'script' not found I am trying to run rosrun script forward.py but it gives me an error saying