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

Ameer Hamza Khan's profile - activity

2022-10-01 12:05:03 -0500 received badge  Famous Question (source)
2022-10-01 12:05:03 -0500 received badge  Notable Question (source)
2022-01-24 02:32:13 -0500 received badge  Critic (source)
2020-06-25 07:59:01 -0500 received badge  Enlightened (source)
2020-06-25 07:59:01 -0500 received badge  Good Answer (source)
2020-05-30 17:39:08 -0500 received badge  Nice Answer (source)
2018-01-04 01:58:12 -0500 commented question How to use camera_info_manager to publish camera_info

Have you tried usb_cam package. It will automatically start the required service for camera calibration.

2018-01-01 07:35:45 -0500 commented question how to use service and subscriber function in same node????

Can you provide the snippet of your node? It may help in identifying the problem.

2018-01-01 00:20:05 -0500 received badge  Famous Question (source)
2017-12-31 05:58:57 -0500 commented answer baud rate parameter in rosserial_python arduino

Is it also possible to specify the serial port e.g. Serial1, Serial2 for Arduino mega or a software serial port?

2017-07-21 10:22:49 -0500 received badge  Famous Question (source)
2017-06-26 09:01:44 -0500 received badge  Necromancer (source)
2017-06-26 09:01:44 -0500 received badge  Teacher (source)
2017-06-26 08:47:21 -0500 answered a question how to install geometry_msgs on raspberry pi

Download common messages from here: https://github.com/ros/common_msgs and place it in src folder. Then run catkin_make

2017-06-06 22:18:26 -0500 received badge  Famous Question (source)
2017-04-25 05:45:37 -0500 received badge  Famous Question (source)
2016-07-25 02:38:34 -0500 received badge  Popular Question (source)
2016-05-06 23:14:39 -0500 received badge  Notable Question (source)
2016-04-30 22:24:14 -0500 received badge  Notable Question (source)
2016-04-30 22:22:54 -0500 received badge  Notable Question (source)
2016-04-30 22:22:54 -0500 received badge  Popular Question (source)
2016-04-02 04:05:30 -0500 commented question No definition of [libiw-dev] for OS [osx]

@fdsa1860 I was not able to install ROS on OSX El-Capitan, so i switched to Linux on VM.

2016-04-01 20:39:22 -0500 received badge  Notable Question (source)
2016-02-10 01:32:54 -0500 commented answer run : rosrun image_view image_view image:=/camera/rgb/image_mono

@Marouane Here is the link https://drive.google.com/file/d/0B6L5... To change the webcam, you need to change the cv::VideoCapture cap(0) line in main function.

2016-01-20 11:14:26 -0500 commented answer problem on "turtle_tf: Missing resource catkin"

@130s I have opened already opened a new question here http://answers.ros.org/question/22452...

2016-01-19 13:45:58 -0500 asked a question roslisp: Missing resource geneus

I am trying to install ROS on OS El Capitan by following instruction given on this link, https://gist.github.com/jmtatsch/3aa268d41ae40c89b35a but at line 80 I am getting following error

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
roslisp: Missing resource geneus

What is the reason of this error and how to resolve it?

2016-01-19 13:30:56 -0500 commented answer problem on "turtle_tf: Missing resource catkin"

I am getting same error with

roslisp: Missing resource geneus

How to solve this?

2016-01-19 13:30:56 -0500 received badge  Commentator
2016-01-19 13:24:02 -0500 received badge  Popular Question (source)
2015-12-26 00:18:54 -0500 asked a question No definition of [libiw-dev] for OS [osx]

I am trying to install ROS on OS X El Capitan and during installing of ardrone_autonomy it gives this error

No definition of [libiw-dev] for OS [osx]

Is there any workaround this problem?

2015-12-15 23:15:26 -0500 received badge  Enthusiast
2015-12-12 09:01:06 -0500 commented answer run : rosrun image_view image_view image:=/camera/rgb/image_mono
2015-12-12 09:00:56 -0500 commented answer run : rosrun image_view image_view image:=/camera/rgb/image_mono

Image_proc is only used for image rectification. For general purpose application u should use OpenCV. I suggest to start with this tutorial. Although written for visual studio for windows but you can easily use it in linux. It will give u general intro of openCV.

2015-12-12 08:54:56 -0500 answered a question run : rosrun image_view image_view image:=/camera/rgb/image_mono
Image_proc is only used for image rectification. For general purpose application u should use OpenCV. I suggest to start with this tutorial. Although written for visual studio for windows but you can easily use it in linux. It will give u general intro of openCV.

https://github.com/MicrocontrollersAn...

2015-12-12 07:39:36 -0500 answered a question ardrone navdata callBack error

The callback function for subscriber nodes are called on ros::spinOnce() execution. Modify your code like this:

//Initiate the ROS

ros::init(argc, argv, "waypoint_nav");
ros::NodeHandle n;

velocity_publisher = n.advertise<geometry_msgs::Twist>("/cmd_vel", 10);

pose_subscriber = n.subscribe("/ardrone/navdata", 10, poseCallback);

while(ros::ok())
{
    ros::spinOnce();
    cout<<endl<<"Roll :"<<roll<<endl;
}
2015-12-12 07:18:28 -0500 commented answer run : rosrun image_view image_view image:=/camera/rgb/image_mono

I think you were missing roscore. What do you want to know about image processing? Do you know openCV?

2015-12-12 05:12:44 -0500 commented answer run : rosrun image_view image_view image:=/camera/rgb/image_mono

@fatima ! had this solution worked for you?

2015-12-12 04:31:20 -0500 answered a question run : rosrun image_view image_view image:=/camera/rgb/image_mono

Just download package from this link extract it in your work_space/src run catkin_make and then rosrun webcam_pub webcam_pub.

Then you can use image_view image_view image:=/webcam/image_raw

2015-12-12 04:18:29 -0500 commented question run : rosrun image_view image_view image:=/camera/rgb/image_mono

But i have just written my own package for integrated laptop webcam. I will try to upload and give you link here.

2015-12-12 04:18:21 -0500 commented question run : rosrun image_view image_view image:=/camera/rgb/image_mono

Actually, the problem is you are not getting the image from webcam, just using image_view can't show you image. You have to get the image on image:=/Image/topic. If you were using usb webcam it would have been much easier but for integrated webcam i am not able to find any package for indigo.

2015-12-12 03:34:43 -0500 commented question run : rosrun image_view image_view image:=/camera/rgb/image_mono

What type of camera are you using? Webcam or some else?

2015-12-08 22:50:15 -0500 received badge  Popular Question (source)
2015-12-08 10:32:49 -0500 asked a question ROS package for localization using webcam

I am working on a vision-based localization project in which I have to estimate the position of an object using a webcam and then use that localization information to control an AR.Drone 2.0. For AR Drone ROS already have an ardrone_autonomy package ( http://wiki.ros.org/ardrone_autonomy ). But So far I haven't been able to find a camera-based localization package. I have tried this package ( https://github.com/lrse/whycon ) which is excellent but still in development stages. Is there any ROS package which can solve this problem?

2015-11-08 18:59:56 -0500 received badge  Popular Question (source)
2015-11-01 22:32:44 -0500 commented question ArDrone navdata reading error

@Gray Servin, yes that was missing. Thanks.

2015-11-01 22:31:42 -0500 marked best answer Subscriber function not being called?

Here is my code

#include <iostream>
#include "ros/ros.h"
#include "std_msgs/Empty.h"
#include "std_msgs/Int32.h"
#include "std_msgs/Float32.h"
#include "geometry_msgs/Twist.h"
#include "ardrone_autonomy/Navdata.h"

#include "std_msgs/String.h"
#include <sstream>

int     state = 1, y = 1;//, battery, rotX, rotY, rotZ;

void callBack(const ardrone_autonomy::Navdata::ConstPtr& data) {
    state = data->state;
    y = 2;
}

int main(int argc, char **argv)
{
ros::init(argc, argv, "ardrone_fly");

ros::NodeHandle ardrone;

ros::NodeHandle output("output");
ros::Publisher pub_t = ardrone.advertise<std_msgs::Empty>("/ardrone/takeoff",1000);
ros::Publisher pub_l = ardrone.advertise<std_msgs::Empty>("/ardrone/land",1000);
ros::Publisher pub_f = ardrone.advertise<geometry_msgs::Twist>("/cmd_vel",1000);
ros::Publisher pub_s = ardrone.advertise<std_msgs::String>("state",1000);

ros::Subscriber sub = ardrone.subscribe<ardrone_autonomy::Navdata>("/ardrone/navdata",1,callBack);

std_msgs::Empty emp;
int x;

ros::Rate loop_rate(50);

std::stringstream ss;
std_msgs::String state_s;

while(ros::ok()) {
    //ROS_INFO("state: %d  ",state);

    ss << "State is: " << state << " y: " << y;// << " Battery is: " << battery;
    state_s.data = ss.str();

    pub_s.publish(state_s);

    if(state==2) {
        pub_t.publish(emp);
    }
    else
        pub_f.publish(msg);

    loop_rate.sleep();
}

pub_l.publish(emp);

ros::spin();

return 0;
 }

When i run this code, the callBack function is not being called, although rostopic echo /ardrone/navdata is showing that data is received. What is going wrong?