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

zubair's profile - activity

2023-06-05 06:06:24 -0500 received badge  Nice Answer (source)
2022-04-07 10:16:42 -0500 received badge  Notable Question (source)
2022-04-07 10:16:42 -0500 received badge  Famous Question (source)
2021-10-15 02:27:19 -0500 received badge  Famous Question (source)
2021-07-12 08:28:11 -0500 received badge  Famous Question (source)
2021-07-05 06:28:12 -0500 received badge  Taxonomist
2020-03-13 03:57:40 -0500 received badge  Famous Question (source)
2020-02-01 06:18:42 -0500 received badge  Notable Question (source)
2019-11-21 07:22:49 -0500 received badge  Necromancer (source)
2019-11-21 07:22:49 -0500 received badge  Teacher (source)
2019-08-19 15:00:26 -0500 marked best answer error in adding extra module in opencv

hi guys

i am trying to add opencv_contrib module to my existing opencv and i am getting following error, please help

-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Found apache ant 1.9.6: /usr/bin/ant
-- Caffe:   NO
-- Protobuf:   YES
-- Glog:   NO
CMake Error at /home/zubair/opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download):
  Unknown CMake command "ocv_download".
Call Stack (most recent call first):
  /home/zubair/opencv_contrib/modules/dnn/CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "/home/zubair/opencv/CMakeFiles/CMakeOutput.log".
See also "/home/zubair/opencv/CMakeFiles/CMakeError.log".

these are last few lines of error ..

2019-08-19 14:52:32 -0500 received badge  Notable Question (source)
2019-05-13 05:47:18 -0500 marked best answer how to pass params from launch file to cpp file

hi all

i have some params which i defined in my launch file as below :

<node name="tfs" pkg="ctt_tools" type="tfs" respawn="true" />
<param name = "point_x_1" value = "23" />
<param name = "point_x_2" value = "26" />
<param name = "point_y_1" value = "-4.70" />
<param name = "point_y_2" value = "4.50" />
</node>

and i want to use these params in my cpp file in the code as below :

        if(m.point.x > 23 && m.point.x < 26 && m.point.y > -4.70 && m.point.y < 4.50 )
        { 
            for (int i=0; i<palletdrop.size();i++)
            {
                if(palletdrop[i].isInside(m.point.x,m.point.y))
                {
                    palletdrop[i].setOccupied();
                    //std::cout<<"Another on area "<<i<<std::endl;
                }
            }

        }

in place of values 23 , 26 etc i want o use params i defined in launch file... how can i do that ???

any suggestions?

thanks all ..

2019-03-29 04:33:53 -0500 received badge  Famous Question (source)
2019-02-10 21:28:02 -0500 marked best answer publish cmd_vel !!

hello guys

how can i publish cmd_vel at for instance 20 times per sec ?? where should this be included ??

velPub = nh.advertise<geometry_msgs::Twist>("/agv1/cmd_vel", 20);

this way ??

int main(int argc, char** argv)
{

    ros::init(argc, argv, "image_processor");
    ros::NodeHandle nh;
    image_transport::ImageTransport it(nh);

    cv::namedWindow("blob");
    cv::createTrackbar("LowerH", "blob", &LowerH, 179, NULL);
    cv::createTrackbar("UpperH", "blob", &UpperH, 179, NULL);
    cv::createTrackbar("LowerS", "blob", &LowerS, 255, NULL);
    cv::createTrackbar("UpperS", "blob", &UpperS, 255, NULL);
    cv::createTrackbar("LowerV", "blob", &LowerV, 255, NULL);
    cv::createTrackbar("UpperV", "blob", &UpperV, 255, NULL);

    //cv::namedWindow(WINDOW, CV_WINDOW_AUTOSIZE);
    //cv::namedWindow(RESULT, CV_WINDOW_AUTOSIZE);

    ros::Subscriber dep;

    dep = nh.subscribe("/camera/depth_registered/points", 1, depthcallback);
    image_transport::Subscriber sub = it.subscribe("/camera/rgb/image_rect_color", 1, blobDetectionCallback);

    followmemsg_pub = nh.advertise<blobdetection::Followmemsg>("/agv1/bt/followmemsg", 10);
    //follow_msg.person == 1;


    ros::ServiceServer service = nh.advertiseService("followmeservice", followmesrv);
    velPub = nh.advertise<geometry_msgs::Twist>("/agv1/cmd_vel", 20);
    pub = it.advertise("camera/image_processed", 1);

    ros::Rate rate(20.0);
    geometry_msgs::Twist speed;

    int count = 1;
    while (nh.ok()) 
    {
        std_msgs::String msg;
        ros::Publisher velPub;
        //std::stringstream ss;

        if (hasNewPcl && isStop == true || isStart == true) 
        {
            getXYZ(posX, posY);
            hasNewPcl = false;
        }
        ros::spinOnce();
        rate.sleep();
    }
}

please help..

thanks

2019-01-07 08:17:08 -0500 commented question DistanceToCollision within a Moveit Planner

hi, which sensor did you use !! @Guenther

2018-12-29 16:53:43 -0500 received badge  Popular Question (source)
2018-12-27 10:44:11 -0500 received badge  Popular Question (source)
2018-12-27 05:05:21 -0500 commented question focal length of Ardrone front camera

but do you know the answer /!

2018-12-27 04:56:22 -0500 commented answer Focal Length from Monocular Calibration

hi, but these Fx and Fy can be found from camera parameters (intrinsic), but what is the actual focal length of the came

2018-12-27 04:22:22 -0500 edited question focal length of Ardrone front camera

focal length of Ardrone front camera Hello guys Referring to formula f_x = f * m_x where f_x can be obtained from camer

2018-12-27 04:21:23 -0500 asked a question focal length of Ardrone front camera

focal length of Ardrone front camera Hello guys Referring to formula f_x = f * m_x where f_x can be obtained from camer

2018-12-20 19:04:29 -0500 received badge  Famous Question (source)
2018-12-20 07:54:36 -0500 received badge  Popular Question (source)
2018-12-20 07:53:07 -0500 commented question Follow line with inductive sensor

all you need is to publish your sensor information on a certain topic, subscribe and read data from that sensor topic a

2018-12-20 07:49:08 -0500 commented question How to use hector_gazebo_plugins

What is your actual requirement ! why you choose hector ! your question is too vast to answer, please narrow down your q

2018-12-20 07:48:48 -0500 commented question How to use hector_gazebo_plugins

What is your actual requirement ! why you choose hector ! your question is too vast to answer, please narrow down your q

2018-12-20 07:48:38 -0500 commented question How to use hector_gazebo_plugins

What is your actual requirement ! you you choose hector ! your question is too vast to answer, please narrow down your q

2018-12-20 07:44:08 -0500 commented question Can't locate node laser_scan_filters

did you try to source your workspace ??? (source devel/setup.bash)

2018-12-20 07:41:23 -0500 asked a question Ardrone camera parameters !

Ardrone camera parameters ! Hello guys I am building an obstacle avoidance node on ROS using tum_simulator. for doing

2018-12-05 03:18:16 -0500 commented question Mono camera pluggin for MoveIt !

@gvdhoorn can you please tell , where exactly do i need to do the configuration !!! in the ardrone package created by Mo

2018-12-05 03:16:52 -0500 received badge  Notable Question (source)
2018-11-08 11:29:44 -0500 commented question Mono camera pluggin for MoveIt !

I actually agree it doesnt exist, but is there any info regarding how can i replace depth camera plugin from Moveit with

2018-11-08 10:11:25 -0500 commented question Mono camera pluggin for MoveIt !

@gvdhoorn thanks !! @PeteBlackerThe3rd i am building an algorithm for obstacle avoidance using single camera (no depth),

2018-11-08 10:11:00 -0500 commented question Mono camera pluggin for MoveIt !

@gvdhoorn thanks !! @PeteBlackerThe3rd i am building an algorithm for obstacle avoidance using single camera (no depth),

2018-11-08 10:10:32 -0500 commented question Mono camera pluggin for MoveIt !

@gvdhoorn thanks !! @PeteBlackerThe3rd i am building an algorithm for obstacle avoidance using single camera (no depth),

2018-11-08 10:09:45 -0500 commented question Mono camera pluggin for MoveIt !

Next thing i would like to do is to add the camera plugin for in Moveit :(

2018-11-08 10:09:17 -0500 commented question Mono camera pluggin for MoveIt !

@gvhoorn thanks !! @PeteBlackerThe3rd i am building an algorithm for obstacle avoidance using single camera (no depth),

2018-11-08 10:04:47 -0500 received badge  Popular Question (source)
2018-11-07 14:43:06 -0500 edited question Mono camera pluggin for MoveIt !

Mono camera pluggin for MoveIt ! Hello all I am currently working with depth camera (Intel realsense) and able to work

2018-11-07 14:42:08 -0500 asked a question Mono camera pluggin for MoveIt !

Mono camera pluggin for MoveIt ! Hello all I am currently working with depth camera (Intel realsense) and able to work

2018-09-01 16:18:38 -0500 received badge  Famous Question (source)
2018-08-23 05:18:03 -0500 received badge  Famous Question (source)
2018-08-19 10:51:43 -0500 commented question Obstacle information to MoveIt !!

Any suggestion guys

2018-08-19 10:51:20 -0500 answered a question Obstacle information to MoveIt !!

Any suggestions guys !!

2018-08-15 15:44:29 -0500 commented answer How to get the distance and the angle (distance and bearing) from a depth camera

you can use this : int arrayPosition = y * my_pcl.row_step + x * my_pcl.point_step; int arrayPosZ = arrayPosit

2018-08-15 15:44:11 -0500 commented answer How to get the distance and the angle (distance and bearing) from a depth camera

you can use this : int arrayPosition = y * my_pcl.row_step + x * my_pcl.point_step; int arrayPosZ = arrayPosit