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

Knowledge's profile - activity

2020-12-21 18:30:29 -0500 received badge  Famous Question (source)
2018-06-21 01:02:20 -0500 received badge  Student (source)
2017-09-15 08:58:07 -0500 received badge  Famous Question (source)
2017-04-20 14:50:51 -0500 received badge  Famous Question (source)
2017-03-16 14:39:50 -0500 received badge  Notable Question (source)
2017-03-02 05:38:15 -0500 received badge  Famous Question (source)
2017-02-01 02:01:42 -0500 received badge  Famous Question (source)
2017-02-01 02:01:42 -0500 received badge  Notable Question (source)
2017-01-04 18:27:16 -0500 received badge  Famous Question (source)
2016-06-19 08:32:13 -0500 received badge  Notable Question (source)
2016-03-27 20:32:26 -0500 received badge  Popular Question (source)
2016-03-27 13:51:01 -0500 asked a question create own string msg

Hello, I have created my own ros msg file and am using it in my code. When i use the following code, std_msgs::String msg;

std::stringstream ss;
ss << "hello world " << count;
msg.data = ss.str();

it says ss wasn't declared in this scope. I have used data as a member of the string i created in the msg file. Please tell me what am i missing?

2016-03-27 12:43:13 -0500 received badge  Notable Question (source)
2016-03-27 09:20:43 -0500 received badge  Notable Question (source)
2016-03-27 06:10:27 -0500 commented answer How can i subscribe to multiple topics when programming in C++

I edited the complete code i used. The following error is occuring. ros::Subscriber sub = n.subscribe<robot_position::num>("Encoder_vel", 1000, chatterCallback); make[3]: * [CMakeFiles/position_node.dir/src/position_node.cpp.o] Error 1 make[3]: Leaving directory `/home/saad/jade_workspace/sandbox

2016-03-27 06:09:30 -0500 received badge  Popular Question (source)
2016-03-27 04:35:14 -0500 commented answer How can i subscribe to multiple topics when programming in C++

Please can you give an example how should i do this?

2016-03-26 18:14:40 -0500 asked a question How can i subscribe to multiple topics when programming in C++

Hi, I want to subscribe to multiple topics i am trying the following code but doesn't work. #include "ros/ros.h" #include <robot_position num.h="">

float vk; float v ; float va; float a;

void chatterCallback(const Robot_Position::Num::ConstPtr& msg1) {

    float v1 = msg1->v1;
    float vr = msg1->vr;
 va=(v1+vr)/2;}

void chatterCallback2(const Robot_Position::Num::ConstPtr& msg2) {

    float a1 = msg2->a1;
float a2 = msg2->a2;
a=(a1+a2)/2;}

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

ros::init(argc, argv, "robot_position");
ros::NodeHandle n;
ros::Subscriber sub = n.subscribe<Robot_Position::Num>("Encoder_vel", 1000, chatterCallback);

ros::NodeHandle n;
ros::Subscriber sub = n.subscribe<Robot_Position::Num>("Accelerometer", 1000, chatterCallback2);
ros::spin();

return 0;

}

2016-03-26 14:04:59 -0500 asked a question how can i remove packages from roots in sandbox environment?

Hi, I want to remove all the packages in my sandbox environment and create new ones. Is there any proper way i can do so?

2016-03-26 13:58:10 -0500 received badge  Popular Question (source)
2016-03-26 11:33:06 -0500 answered a question I cannot configure the ROS environment

I can roscd in my package, but the environment is not set, actually i am unable to know the proper syntax of export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH /your/path/to/workspace what does this explain? Actually i pasted this in my .bashsrc file few days before and the environment was set permanently, but suddenly it didn't work and i deleted this line from my .bashsrc file, now i am trying to configure it again but don't remember how i managed to do that earlier.

2016-03-26 10:53:22 -0500 received badge  Editor (source)
2016-03-26 10:52:21 -0500 asked a question I cannot configure the ROS environment

Hi, I am having problem in configuring ROS environment. I have created a package and when i use the rospack find {package name} command it doesn't find it. I sourced the path using

export ROS_PACKAGE_PATH=/home/saad/jade_workspace/sandbox:/opt/ros/jade/share:/opt/ros/jade/stacks

and paste it in the .bashsrc file at the end, still not helpful. Rospack find command doesn't work. As i am using rosbuild please anyone help me out here. My path is not properly set. And please tell me if i am using the ros package command properly.


Edit: I can roscd in my package, but the environment is not set, actually i am unable to know the proper syntax of

export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH

/your/path/to/workspace what does this explain?

Actually i pasted this in my .bashsrc file few days before and the environment was set permanently, but suddenly it didn't work and i deleted this line from my .bashsrc file, now i am trying to configure it again but don't remember how i managed to do that earlier.

i wrote

export ROS_PACKAGE_PATH=/home/saad/sandbox/jade_workspace:/opt/ros/jade/share:/opt/ros/jade/stacks

in my .bashsrc file in the last don't know if it is right.

2016-03-04 19:24:47 -0500 received badge  Notable Question (source)
2016-03-04 04:17:56 -0500 received badge  Popular Question (source)
2016-03-03 12:56:18 -0500 asked a question how to transform local position to global?

I want to create to nodes and make them communicate on the same topic of type position,

http://wiki.ros.org/ROS/Tutorials/Und...

This tutorial helped me how to create two nodes and make them communicate on a topic. Using turtlesim i can detect the turtle position but how can i convert that position from local to global reference frame? The tutorial only shows how to make nodes and topics and use turtlesim_node as first node and turtle_teleop_key as other, turtle1/pose as the topic, but i can't get how this node can convert the coordinates that is x,y and theta and change them into global reference frame?

2016-03-03 12:56:18 -0500 received badge  Taxonomist
2016-03-03 06:38:29 -0500 received badge  Popular Question (source)
2016-03-02 15:19:22 -0500 received badge  Notable Question (source)
2016-03-02 11:50:54 -0500 asked a question how to create package in jade?

The ROS site guides how to create package in fuerte which i think is old version, i've installed ROS Jade and want to create a package in JADE workspace ,with this distribution, can anyone help?

2016-03-02 10:31:57 -0500 commented answer Ros is permenantly installed after following the installation steps?

thanks it says "jade" when i type "rosversion -d", this means now it is permanently installed?

2016-03-02 09:18:52 -0500 received badge  Popular Question (source)
2016-03-02 07:36:01 -0500 asked a question Ros is permenantly installed after following the installation steps?

Hey, i wanted to ask when i follow the installation steps given on the site, i execute the commands" Ubuntu install of ROS Jade" and when i reach the end do i need to verify that ros is installed? When i close the terminal ROS vanishes? How can i know that whenever i open UBUNTU Ros will be installed?

Because when i go through the steps and verify by typing "ros versionros" it says"unversioned" and when i close and open terminal again it says"command ros not found" i know it maybe a silly question but i am a newbie:)

2016-03-02 06:11:49 -0500 received badge  Notable Question (source)
2016-03-02 05:51:42 -0500 commented answer How to install ROS on ubuntu and verify it?

Having trouble when i check if ROS is installed properly i typed this "source /opt/ros/<distro>/setup.bash" it says "unversioned" what does it mean?

2016-03-02 05:50:29 -0500 commented answer How can i check if ROS is installed?

when i type in the command to check if ROS is installed "source /opt/ros/<distro>/setup.bash"

2016-03-01 20:46:35 -0500 received badge  Popular Question (source)
2016-03-01 19:52:44 -0500 received badge  Popular Question (source)
2016-03-01 16:12:21 -0500 received badge  Popular Question (source)
2016-03-01 15:59:52 -0500 asked a question I want to create a ROS package? how can i?

i want to create two nodes on ROS, and want them to communicate and analyze the robot's local and global reference frames. To be precise i want to examine the position of the robot in x, y and theta coordinates, then send this result to another node which will convert it to global reference frame and then send it to another node. please help me with this.

2016-03-01 15:58:35 -0500 commented question How to install ROS on ubuntu and verify it?

to check if ros is installed or not i've typed "source /opt/ros/<distro>/setup.bash" it says "unversioned" what does it mean?