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

RohitM's profile - activity

2022-10-14 23:22:07 -0500 received badge  Famous Question (source)
2022-01-11 22:40:12 -0500 marked best answer Why is a global planner required for teb_local_planner?

I have successfully implemented the global_planner and my own global planner plugin(RRTstar) for the teb_local_planner. I've found that the teb_local_planner is very efficient is avoiding obstacles. My doubt is, what is the role of the global planner in this? I do understand that the local planner is merely optimizing the trajectory provided by the global planner. But, going by the analogy that the local planner is like an elastic band, why couldn't we merely have selected a straight line between the start and goal point and use teb_local_planner to weave its way through the obstacles since it is effectively doing that with a global planner as well.

Also, am I wrong in understanding that the teb local planner works similar to the potential field planners? Do they suffer from the same drawbacks?

Any help would be much appreciated!

2021-11-16 08:55:06 -0500 received badge  Self-Learner (source)
2021-06-07 13:30:10 -0500 received badge  Famous Question (source)
2021-01-19 12:18:38 -0500 received badge  Self-Learner (source)
2021-01-19 12:18:38 -0500 received badge  Necromancer (source)
2020-09-02 00:32:14 -0500 received badge  Popular Question (source)
2020-08-19 01:02:19 -0500 asked a question Unable to use python speech_recognition package

Unable to use python speech_recognition package I am trying to use the python speech_recognition package with ros. If I

2020-06-15 17:40:47 -0500 received badge  Teacher (source)
2020-06-15 17:40:47 -0500 received badge  Self-Learner (source)
2020-02-18 06:03:40 -0500 received badge  Famous Question (source)
2019-06-25 11:35:40 -0500 received badge  Famous Question (source)
2019-06-17 09:10:21 -0500 received badge  Notable Question (source)
2019-06-17 09:10:21 -0500 received badge  Popular Question (source)
2019-04-07 22:35:01 -0500 marked best answer Running ROS in a Tensorflow virtual environment

I run Tensorflow in a virtual environment and I want to run a python node in this virtual environment. I'm getting an error saying:

ImportError: No module named 'rospkg'

I've tried running source ./devel/setup.bash but that didn't help solve the problem.

Does anyone have any suggestions on how to solve this problem?

Thanks in advance.

2019-03-05 14:51:23 -0500 marked best answer Adding dynamic obstacles in Stage

I have attempted two ways to add a dynamic obstacle neither of which have worked:

  1. I added a simple model and added a velocity attribute to it which should give it an initial velocity as mentioned here. But for some reason that I have not understood, this method is not working.

  2. I added another position model (thus making it two robots in my simulation) so that I can try to pass messages to my dynamic obstacle through the robot_1/cmd_vel topic. After debugging the many tf errors that come I have finally got rid of errors in rviz. However the obstacles are not visible in rviz even though they are visible in Stage. Not sure how to solve this error either.

Any help will be highly appreciated. If you require any additional information to help understand the problem then I can add them at the earliest.

2018-10-09 03:36:37 -0500 received badge  Notable Question (source)
2018-10-01 13:45:43 -0500 received badge  Famous Question (source)
2018-09-19 17:18:28 -0500 marked best answer How to solve pthread_create() failure: EPERM

I am attempting to use the ROBOTIS-Manipulator Code in ROS Indigo on Ubuntu 14.04. It is successfully executing catkin_make but is giving an error in roslaunch. After a lot of time I think that I have figured out that the error is in the following code snippet. I outputted the value of error and as shown below, it is giving 1 => EPERM (No permission to set the scheduling policy and parameters specified in attr). How to solve this error?

Error:

[ INFO] [1464938807.597236403]: error: 1
[ERROR] [1464938807.597311436]: timer thread create fail!!
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'

Code Snippet:

// create and start the thread
        if((error = pthread_create(&this->timer_thread_, &attr, this->ThreadProc, this))!= 0) {ROS_INFO("error: %d", error);
            ROS_ERROR("timer thread create fail!!");
            exit(-1);
        }
2018-09-19 14:22:00 -0500 marked best answer Subscriber receives 0 value

I am publishing the pose from a node and receiving it another node. For some reason the subscriber is always getting a 0 value. Below is the ROS_INFO output of both the published message and the subscribed message.

[ INFO] [1467443650.648643683]: 0.174000    -0.289000     -0.275000

[ INFO] [1467443634.965920060]: 0.000000      0.000000       0.000000

This is a code snippet of the callback function where I am ROS_INFOing the message.

void BaseModule::KinematicsPoseMsgCallback( manipulator_base_module_msgs::KinematicsPose msg) 
{   
    if( enable == false )
        return;
    ROS_INFO("%f      %f       %f", msg.pose.position.x, msg.pose.position.y, msg.pose.position.z);
    Robotis->kinematics_pose_msg = msg;

Does anyone know why this might be the case? Please tell me if you need any more information to solve this problem. Thanks.

Edit: These are the publisher messages:

ros::Publisher k_i = n.advertise<manipulator_base_module_msgs::KinematicsPose>("kinematics_input", 10);
manipulator_base_module_msgs::KinematicsPose kin;
kin.pose.position.x = 0.174;
kin.pose.position.y = -0.289;
kin.pose.position.z = -0.275;
k_i.publish(kin);
2018-09-11 11:57:46 -0500 received badge  Popular Question (source)
2018-09-11 11:57:46 -0500 received badge  Notable Question (source)
2018-09-11 11:57:46 -0500 received badge  Famous Question (source)
2018-08-08 01:46:50 -0500 marked best answer Python version of tf functions

Hi,

I am trying to transform a velocity from one frame to another. I want to use the transformVector3 function as mentioned in this link. Since it requires a StampedVector I am trying to convert the datatype using the function tf::vector3StampedMsgtoTF. I am writing my node in Python but I cannot find the Python version of the above tf functions anywhere.

Any help will be much appreciated.

ps. Does using tf2 avoid the explicit conversion of a geometry message to TF datatypes?

2018-06-15 17:28:45 -0500 marked best answer [rospack] Error: package 'rviz' not found

I've been using ROS for a couple of years and Rviz has been working satisfactorily till now. I'm not sure what I've done but I'm getting the error mentioned in the question ( [rospack] Error: package 'rviz' not found ) while executing the following statements:

rosrun rviz rviz 
rospack find rviz

Yes, I have sourced the required directories, this is the output to echo $ROS_PACKAGE_PATH

/home/rohit/glocal/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

ps. My original error was that one of my launch files which runs the rviz node was giving the following error:

ERROR: cannot launch node of type [rviz/rviz]: rviz
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/rohit/glocal/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks

This made me suspect that my rviz package wasn't being found which is the primary error according to me. Any help will be much appreciated.

2018-06-15 17:28:32 -0500 marked best answer Convert Costmap2D to OMPL State Space

I am writing a global planner plugin for the navigation stack using OMPL. I need to convert the Costmap2D in ROS to its corresponding State Space representation. Has anyone done this before?

2018-04-27 11:47:45 -0500 received badge  Famous Question (source)
2018-04-27 11:47:45 -0500 received badge  Notable Question (source)
2018-03-18 00:52:23 -0500 commented question ImportError: dynamic module does not define init function (PyInit__tf2)

Sorry mate, I wrongly thought that I was using Python 2.7. I checked my virtual environment and I was actually running P

2018-03-18 00:50:01 -0500 commented question Running ROS in a Tensorflow virtual environment

Thanks for the reply. Turns out that I needed to pip install rospkg catkin_pkg

2018-03-18 00:42:18 -0500 received badge  Popular Question (source)
2018-03-17 15:24:52 -0500 asked a question ImportError: dynamic module does not define init function (PyInit__tf2)

ImportError: dynamic module does not define init function (PyInit__tf2) I'm running Python 2.7 and when I try to import

2018-03-14 22:48:38 -0500 asked a question Running ROS in a Tensorflow virtual environment

Running ROS in a Tensorflow virtual environment I run Tensorflow in a virtual environment and I want to run a python nod

2018-03-01 02:45:53 -0500 received badge  Notable Question (source)
2018-02-11 21:48:53 -0500 received badge  Famous Question (source)
2018-01-26 07:20:43 -0500 marked best answer Interfacing ROS with DSRC

Hi,

I am trying to use DSRC for V2I communication. Does anyone have any tips or resources on how I can begin interfacing ROS with DSRC, I am currently unable to find any resources to help me get started with this. Any help will be much appreciated.

Thanks, Rohit.

2018-01-26 04:38:18 -0500 received badge  Notable Question (source)
2018-01-25 17:23:46 -0500 commented answer Interfacing ROS with DSRC

The reason ROS2 will be difficult is that our publishers are written in python and the ros1_bridge works for C++ message

2018-01-25 17:21:14 -0500 commented answer Interfacing ROS with DSRC

After that the message is sent from the computer to the radio device (perhaps via ethernet) and published using radio as

2018-01-25 17:20:39 -0500 commented answer Interfacing ROS with DSRC

Thanks so much for your suggestions. I'm not very knowledgeable in communication theory so please tell me if I'm underst

2018-01-24 08:47:10 -0500 received badge  Favorite Question (source)
2018-01-24 02:57:24 -0500 received badge  Popular Question (source)
2018-01-23 21:39:03 -0500 commented question Interfacing ROS with DSRC

Thanks so much for that info! We would definitely try to have an IP network available but it will be a little difficult.