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

Safeer's profile - activity

2019-08-29 22:40:54 -0500 received badge  Favorite Question (source)
2018-07-09 00:53:24 -0500 commented answer How to use depth value from /camera/depth/image?

Again, check if the sensor is working fine.

2017-04-18 13:49:44 -0500 commented answer How to use depth value from /camera/depth/image?

Check if your sensor is working fine and is at an acceptable distance from an object.

2017-04-13 04:02:06 -0500 commented question Turtlebot error - [mobile_base -6] process has finished cleanly

Oh! Good to hear, good luck!

2017-04-13 02:09:24 -0500 commented question Turtlebot error - [mobile_base -6] process has finished cleanly

Yes I was able to solve it. It had something to do with the degradation from Hydro to Groovy. A fresh installation fixed it.

2016-06-01 04:13:45 -0500 received badge  Famous Question (source)
2015-10-14 10:51:30 -0500 received badge  Nice Question (source)
2015-10-11 12:15:52 -0500 received badge  Notable Question (source)
2015-08-19 19:51:25 -0500 received badge  Famous Question (source)
2014-08-13 00:11:38 -0500 received badge  Notable Question (source)
2014-08-13 00:11:38 -0500 received badge  Popular Question (source)
2014-08-07 20:44:01 -0500 received badge  Student (source)
2014-07-14 02:35:57 -0500 received badge  Famous Question (source)
2014-05-18 13:27:56 -0500 received badge  Popular Question (source)
2014-05-15 02:27:18 -0500 asked a question Turtlebot error - [mobile_base -6] process has finished cleanly

I am using ROS Groovy on Ubuntu 12.04 LTS.

I am facing the following errors:

[cmd_vel_mux-8] process has finished cleanly

[mobile_base -6] process has finished cleanly

[bumper2pointcloud-9] process has finished cleanly

The generated log files show: bond broken. exiting

After these error messages on the console, the turtlebot stops moving.

I think these errors occur when I try to publish velocity to move the robot. However, I am not sure if this is the only reason.

2014-05-09 00:54:44 -0500 commented question TurtleBot Service Crashing

Btw, the 'icon on top' is just a shortcut for this 'bringup' package. Nothing else :)

2014-05-09 00:54:00 -0500 commented question TurtleBot Service Crashing

Okay so, we installed this Linux which had already ROS integrated in it. It is customized for Turtlebot. It came with our turtlebot. turtlebot_bringup is a package that initiates our turtlebot's motors. We need to run it in order to initialize it. I hope I've made myself clear.

2014-05-09 00:54:00 -0500 received badge  Commentator
2014-05-08 13:45:05 -0500 received badge  Notable Question (source)
2014-05-08 09:20:03 -0500 received badge  Popular Question (source)
2014-05-07 22:16:15 -0500 commented question TurtleBot Service Crashing

I meant, the turtlebot_bringup service.

2014-05-07 22:15:22 -0500 received badge  Enthusiast
2014-05-07 02:29:04 -0500 asked a question TurtleBot Service Crashing

I am using ROS Groovy on Ubuntu 12.04 LTS. I am programming in C++

My problem is that turtlebot service is crashing frequently whenever I run a specific node. The icon of TurtleBot on the Top-Right side remains white, showing that service is still running but the robot doesn't move when the velocity is published.

I think the problem is due to the sockets in my node because I have run some other nodes and the robot work fines. I have tried both, turtlebot bringup and turtlebot service.

How should I stop the turtlebot service or turtlebot bringup from being crashed?

2014-05-07 00:44:21 -0500 asked a question Using SLAM map in a custom node

I have followed the SLAM Gmapping tutorial. I have used rviz to set the goal for the robot.

I want to write a program in which robot moves autonomously. Therefore, I want to ask how can I set the current pose and navigation goal in the code (cpp node) without using the rviz? And also how can I used the learned (and saved) map in my code (cpp node)?

2014-05-03 01:20:01 -0500 received badge  Famous Question (source)
2014-04-20 06:56:48 -0500 marked best answer How to use depth value from /camera/depth/image?

I am using this code

topic is: /camera/depth/image
type: /sensor_msgs/Image

According to the code, (msg->data[0]) is providing the value of Top-Left Corner.

I wanted to ask:

  1. How can I get the value of the Top-Right Corner, Centre, etc.
  2. How can I get the normal depth value that can tell me the distance from the object? Do I need to do some mathematical work or is there a method?
2014-04-20 06:56:25 -0500 marked best answer Making Subscriber and Publisher work in the same node

I have attached my code. I am trying to make the turtlebot go backward once the bumper is pressed. I'm able to make it move forward and get the bumper pressed signal separately. The problem I'm facing is that it I cannot make them work together. It either moves forward or send the bumper pressed signal. (Depending upon where ros::Spin() is placed)

I think the issue is about the ordering/placement of the following lines in my PublishData Class.

ros::Subscriber bumper = n.subscribe("/mobile_base/events/bumper",1, callback);
pub_data.publish(tw);
ros::spin();

My Code:

void callback(const kobuki_msgs::BumperEventConstPtr msg)
{
      ROS_ERROR("MOVE!!! Bumper pressed.");
      ROS_INFO("MOVE!!! Bumper pressed.");

}
class PublishData
{
      ros::NodeHandle n;
      ros::NodeHandle n1;
    public:
      PublishData()
      {
        ros::Publisher pub_data = n.advertise<geometry_msgs::Twist>("/mobile_base/commands/velocity", 10);
        geometry_msgs::Twist tw;
        tw.linear.x = 0.1;
        ROS_INFO("DataPublished");

        while(ros::ok())
        {
            ros::Subscriber bumper = n.subscribe("/mobile_base/events/bumper",1, callback);
            //ROS_WARN("In Loop.");
            pub_data.publish(tw);
            ros::spin();
        }
      }
};


int main(int argc, char **argv)
{
  ros::init(argc, argv, "move_data");
  PublishData object;
   return 0;
}
2014-04-20 06:56:25 -0500 marked best answer Topic publish/subscribe problem after running dist-upgrade on ROS Hydro

After running apt-get dist-upgrade on ROS Hydro, simulated robot is not responding to published messages. The simulator is running perfectly. The code/topics are working fine on Turtle-bot (hardware) i.e. publishing and subscribing.

rosdep --version: 0.10.24

export | grep ROS gives us this:

declare -x ROS_DISTRO="hydro"
declare -x ROS_ETC_DIR="/opt/ros/hydro/etc/ros"

We have started to work on Turtlebot and new to ROS. Any help will be appreciated.

thanks in advance

2014-04-20 06:56:24 -0500 marked best answer How to exchange data between nodes?

I want to send data from one node to another. For example: One node is publishing data to the topic /mobile_base/commands/velocity and other one is subscribed to /mobile_base/events/bumper. Both the subscriber & publisher are working fine.

What I want to do is to make the robot move backward once the bumpers are pressed. I do not know how to send the event of bumper pressed to the other node.

The solution I thought was of using pipes or sockets or shared memory to exchange data between two nodes.

Is this the right approach? Or does ROS has a builtin method for that?

Thanks in Advance.

2014-03-25 18:44:09 -0500 received badge  Famous Question (source)
2014-03-23 22:43:35 -0500 marked best answer Could not find a configuration file for package opencv

I am trying to compile the code given at this page

I am using ROS Groovy on Ubuntu 12.04

When I run catkin_make, I get the following error:

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package opencv.

  Set opencv_DIR to the directory containing a CMake configuration file for
  opencv.  The file will have one of the following names:

    opencvConfig.cmake
    opencv-config.cmake

Call Stack (most recent call first):
  learning_image_transport/CMakeLists.txt:7 (find_package)

CMake Error at learning_image_transport/CMakeLists.txt:82 (target_link_libraries):
  Cannot specify link libraries for target "learning_image_transport_node"
  which is not built by this project.

learning_image_transport is my package name.

Cmake file:

cmake_minimum_required(VERSION 2.8.3)
project(learning_image_transport)
find_package(catkin REQUIRED COMPONENTS cv_bridge image_geometry image_transport opencv)
find_package(OpenCV)    
include_directories(include  
 ${catkin_INCLUDE_DIRS} /opt/ros/groovy/share/OpenCV)

Package.xml:

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>cv_bridge</build_depend>
  <build_depend>image_transport</build_depend>
  <build_depend>opencv2</build_depend>
  <build_depend>image_geometry</build_depend>
  <build_depend>opencv</build_depend>  
  <build_depend>OpenCV</build_depend>
  <run_depend>cv_bridge</run_depend>
  <run_depend>image_transport</run_depend>
  <run_depend>opencv2</run_depend>

I have tried to follow the methods describe in various questions, with same problem, such as this and some more. However, the problem still exists in my case.

2014-03-10 23:38:00 -0500 received badge  Notable Question (source)
2014-03-07 08:10:43 -0500 received badge  Famous Question (source)