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

niko8505's profile - activity

2019-12-02 07:15:39 -0500 received badge  Notable Question (source)
2017-05-15 09:59:48 -0500 received badge  Famous Question (source)
2017-04-06 07:42:01 -0500 received badge  Popular Question (source)
2017-04-06 07:42:01 -0500 received badge  Notable Question (source)
2017-03-05 06:47:51 -0500 received badge  Famous Question (source)
2017-01-24 21:56:33 -0500 received badge  Popular Question (source)
2017-01-23 03:53:57 -0500 received badge  Notable Question (source)
2017-01-23 03:53:57 -0500 received badge  Popular Question (source)
2016-11-23 05:30:48 -0500 asked a question roslaunch astra_launch astra.launch doesn't work

Everytime I run roslaunch astra_launch astra.launch command the camera starts up and after a couple of seconds it stops and the following message is being written to the console ->

[camera/driver-2] process has finished cleanly

log file: /home/turtlebot/.ros/log/edd078ce-b15b-11e6-8a2e-000c29a7eef6/camera-driver-2*.log

and the contents of the log file are as follows ->

[ INFO] [1479899495.601915898]: /camera/ir -> /camera/ir
[ INFO] [1479899495.601948587]: /camera/rgb -> /camera/rgb
[ INFO] [1479899495.601981582]: /camera/rgb/image -> /camera/rgb/image_raw
[ INFO] [1479899515.195464003]: Bond broken, exiting
2016-11-21 09:39:39 -0500 asked a question CMake Error image_transport when trying to catkin_make project

I am working on ROS Indigo and I am trying to build a simple app that would show the image published by the Astra camera. I do this by subscribing to the following topic /camera/rgb/image_raw. But when running catkin_make I get the following error:

CMake Error at /home/turtlebot/catkin_ws/devel/share/image_transport/cmake/image_transportConfig.cmake:106 (message):
  Project 'image_transport' specifies
  '/home/turtlebot/catkin_ws/src/image_common/image_transport/include' as an
  include dir, which is not found.  It does neither exist as an absolute
  directory nor in
  '/home/turtlebot/catkin_ws/src/image_common/image_transport//home/turtlebot/catkin_ws/src/image_common/image_transport/include'.
  Ask the maintainer 'Jack O'Quin <jack.oquin@gmail.com>, Vincent Rabaud
  <vincent.rabaud@gmail.com>' to fix it.
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package)
  detect_green_object/CMakeLists.txt:3 (find_package)

Here is my code, CMakeLists.txt and package.xml

#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>

void imageCallback(const sensor_msgs::ImageConstPtr& msg)
{
  try
  {
    cv::imshow("view", cv_bridge::toCvShare(msg, "bgr8")->image);
    cv::waitKey(30);
  }
  catch (cv_bridge::Exception& e)
  {
    ROS_ERROR("Could not convert from '%s' to 'bgr8'.", msg->encoding.c_str());
  }
}

int main(int argc, char **argv)
{
  ros::init(argc, argv, "image_listener");
  ros::NodeHandle nh;
  cv::namedWindow("view");
  cv::startWindowThread();
  image_transport::ImageTransport it(nh);
  image_transport::Subscriber sub = it.subscribe("/camera/rgb/image_raw", 1, imageCallback);
  ros::spin();
  cv::destroyWindow("view");
}

Here is my package.xml

<?xml version="1.0"?>
<package>
  <name>detect_green_object</name>
  <version>0.0.0</version>
  <description>The detect_green_object package</description>

  <maintainer email="turtlebot@todo.todo">turtlebot</maintainer>

  <license>TODO</license>


  <buildtool_depend>catkin</buildtool_depend>

  <build_depend>cv_bridge</build_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>sensor_msgs</build_depend>
  <build_depend>std_msgs</build_depend>
  <build_depend>message_filters</build_depend>
  <build_depend>pluginlib</build_depend>
  <build_depend>rosconsole</build_depend>
  <build_depend>roslib</build_depend>
  <build_depend>image_transport</build_depend>
  <build_depend>tf</build_depend>

  <run_depend>cv_bridge</run_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>sensor_msgs</run_depend>
  <run_depend>std_msgs</run_depend>
  <run_depend>message_filters</run_depend>
  <run_depend>pluginlib</run_depend>
  <run_depend>rosconsole</run_depend>
  <run_depend>roslib</run_depend>
  <run_depend>image_transport</run_depend>
  <run_depend>tf</run_depend>



  <!-- The export tag contains other, unspecified, tags -->
  <export>
    <!-- Other tools can request additional information be placed here -->

  </export>
</package>

Here is my CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
project( detect_green_object )
find_package(catkin REQUIRED
  COMPONENTS
    roscpp
    cv_bridge
    rospy
    std_msgs   
    message_filters
    pluginlib
    rosconsole
    roslib
    sensor_msgs
    image_transport
    tf
    OpenCV

)
find_package( Boost REQUIRED )

catkin_package( 
  LIBRARIES ${PROJECT_NAME}
  DEPENDS roscpp rospy std_msgs cv_bridge message_filters pluginlib rosconsole roslib sensor_msgs image_transport tf
)


include_directories(
  ${catkin_INCLUDE_DIRS}
)

add_executable( detect_green_object detect_green_object.cpp )
target_link_libraries( detect_green_object ${OpenCV_LIBS} ${catkin_LIBRARIES} )
2016-10-23 12:20:39 -0500 asked a question How do nodes communicate with master?

I am new to ROS and just out of curiosity I was wondering what technology is being used allow nodes to communicate with master and with each other?