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

Sufyan's profile - activity

2023-01-23 14:23:49 -0500 received badge  Famous Question (source)
2022-01-13 14:01:15 -0500 received badge  Famous Question (source)
2022-01-13 14:01:15 -0500 received badge  Notable Question (source)
2021-03-09 08:10:58 -0500 received badge  Student (source)
2020-02-06 22:22:07 -0500 received badge  Notable Question (source)
2019-07-01 03:02:04 -0500 received badge  Famous Question (source)
2018-12-21 04:00:56 -0500 received badge  Famous Question (source)
2018-10-10 22:31:17 -0500 received badge  Notable Question (source)
2018-10-04 13:38:25 -0500 commented answer ar_track_alvar not precise and not producing repeatable results

can the camera callibration be the problem ? because besides all the working i get a small error on this node which is

2018-10-04 11:48:51 -0500 received badge  Popular Question (source)
2018-10-04 11:39:38 -0500 edited question ar_track_alvar not precise and not producing repeatable results

ar_track_alvar not precise and not producing repeatable results In my project i am taking a picture from an IP camera an

2018-10-04 11:38:03 -0500 edited question ar_track_alvar not precise and not producing repeatable results

ar_track_alvar not precise and not producing repeatable results In my project i am taking a picture from an IP camera an

2018-10-04 11:37:54 -0500 commented question ar_track_alvar not precise and not producing repeatable results

Hey!! sorry for late reply. I am using a 1 MP camera and my ar tag is about 4 meters from camera .. I have edited the qu

2018-10-04 09:09:43 -0500 received badge  Enthusiast
2018-09-27 08:33:31 -0500 marked best answer Can i Use navigation stack if my robot does not have any laser or kinect type camera

currently I am working on a project which is as following. 1-a camera is mounted on cieling of my room 2- image processing is used to localize the robot(using ar alvar track package) and obstacles. 3- path planning is done using A* algorithm i am done with all that is mentioned above. Now i want my robot to follow the planned path. but according to the description of Navigation stack package, you must need a Laser sensor for sensor stream input... Is there anyway to use this package for my project or is there any other solution for tracking of my robot

2018-09-27 08:32:11 -0500 asked a question ar_track_alvar not precise and not producing repeatable results

ar_track_alvar not precise and not producing repeatebility In my project i am taking a picture from an IP camera and con

2018-09-23 20:32:44 -0500 marked best answer changing the frequency of loop

following is the snipet of my code i want to change the frequency with which the image is pubished i tried changing the loop_rate(10) to loop_rate(1) but it didn't work

    ros::Rate loop_rate(10);
    int counter =0;
       while(ros::ok() ){
    counter++;
        #if 1
            ros::Time time = ros::Time::now();
            cv_ptr->encoding = "bgr8";
            cv_ptr->header.stamp = time;

cv_ptr->header.frame_id = "/Sufyan_ImageTopic";
        #endif

            cv_ptr->image = image;
            image_pub_.publish(cv_ptr->toImageMsg());

            ROS_INFO("ImageMsg Send.");
        #endif

        }   

    ros::spin();
2018-09-23 11:06:06 -0500 received badge  Popular Question (source)
2018-09-23 05:20:31 -0500 asked a question changing the frequency of loop

changing the frequency of loop following is the snipet of my code i want to change the frequency with which the image is

2018-09-19 08:32:59 -0500 received badge  Notable Question (source)
2018-08-27 16:21:29 -0500 received badge  Popular Question (source)
2018-08-27 15:28:57 -0500 marked best answer Callback function not changing the value of Global variable

i am using ar track alvar to recieve co ordinates from my camera... The data seems to be fine but i want to use this data.For this i made a subscriber as below

start = (0,0) 

def callback(msg):
    x=msg.pose.position.x
    y=msg.pose.position.y
    rospy.loginfo(rospy.get_caller_id() + "I heard x = %f", x)
    rospy.loginfo(rospy.get_caller_id() + "I heard  y= %f", y)XPos1 =x
    YPos1 =y  
    XPos1 += 0.11
    YPos1 += 0.1
    XPos1 = XPos1 * 22.69
    YPos1 = YPos1 * 24
    XPos1 = round(XPos1) -1
    YPos1 = round(YPos1) 
    XPos1 =int(XPos1)
    YPos1= int(YPos1)    
    start = (XPos1,YPos1)
    print start


print start

where start is a global variable which i initialize in the begining as start(0,0) but when my code is executed even though this call back function is invoked as i can see the value of x and y on terminal and the value of start ( which is a global variable) is also what i expected but as soon as the program exits callback function the the last print statement prints (0,0) as the value of start (which is what i initialized start variable to in the begining of program as global variable) This is the Output

[INFO] [1535398460.244633]: /listener_11195_1535398438793I heard x = 1.294724
[INFO] [1535398460.250098]: /listener_11195_1535398438793I heard  y= -0.089722

(31, 0)
^C(0, 0)
2018-08-27 15:28:57 -0500 received badge  Scholar (source)
2018-08-27 15:07:36 -0500 commented question Callback function not changing the value of Global variable

Yes you are right it solved the problem. Thanks a lot!!!

2018-08-27 14:57:13 -0500 edited question Callback function not changing the value of Global variable

Callback function not changing the value of Global variable i am using ar track alvar to recieve co ordinates from my ca

2018-08-27 14:48:21 -0500 edited question Callback function not changing the value of Global variable

Callback function not changing the value of Global variable i am using ar track alvar to recieve co ordinates from my ca

2018-08-27 14:48:21 -0500 received badge  Editor (source)
2018-08-27 14:36:47 -0500 edited question Callback function not changing the value of Global variable

Callback function not changing the value of Global variable i am using ar track alvar to recieve co ordinates from my ca

2018-08-27 14:31:55 -0500 asked a question Callback function not changing the value of Global variable

Callback function not changing the value of Global variable i am using ar track alvar to recieve co ordinates from my ca

2018-08-11 05:04:42 -0500 commented question Can i Use navigation stack if my robot does not have any laser or kinect type camera

actually i do have an ultrasonic Sensor mounted in front of my vehicle but it's just to detect if any dynamic obstacle c

2018-08-11 05:04:37 -0500 commented answer Can i Use navigation stack if my robot does not have any laser or kinect type camera

Thanks a Lot!!! i have already inflated the area around the obstacle so as to avoid collision... i was also wondering if

2018-08-11 04:59:26 -0500 received badge  Supporter (source)
2018-08-11 04:59:20 -0500 received badge  Popular Question (source)
2018-08-08 12:32:08 -0500 asked a question Can i Use navigation stack if my robot does not have any laser or kinect type camera

Can i Use navigation stack if my robot does not have any laser or kinect type camera currently I am working on a project