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

Bindu's profile - activity

2016-12-13 10:03:57 -0500 received badge  Famous Question (source)
2016-09-22 17:20:31 -0500 received badge  Student (source)
2016-05-09 20:56:39 -0500 received badge  Famous Question (source)
2015-11-28 16:26:55 -0500 marked best answer can i make map in ROS using rqt ?

I ask this question because rqt is implemented by QT framework and it is the combination of QT and ROS. QT supports to load map so i want to know if rqt supports such feature. if so i want to load map and track gps through rqt. is it possible? please help. . .

2015-09-07 08:42:39 -0500 marked best answer How can i write a publisher for /GPSFix message from Velodyne Lidar?

Hi,

I am working with lidar and QGIS. i need to take /GPSFix meassage from velodyne lidar and mark its GPS position in QGIS map. In QGIS i have to write a plugin but for that i need to subscribe /GPSFix meassage from lidar.

Is it possible?

if so how to implement it? can anyone help? pls

2015-08-27 16:41:46 -0500 received badge  Famous Question (source)
2015-02-04 04:03:07 -0500 received badge  Famous Question (source)
2014-08-18 08:17:54 -0500 received badge  Famous Question (source)
2014-07-28 11:56:40 -0500 received badge  Famous Question (source)
2014-07-23 22:48:13 -0500 received badge  Famous Question (source)
2014-06-10 19:14:32 -0500 received badge  Famous Question (source)
2014-02-16 10:05:13 -0500 received badge  Notable Question (source)
2014-01-28 17:31:56 -0500 marked best answer How to play bagfile from a specific point( i.e not from start of the bagfile)?

My Bag file is taken from lidar and that file contains the following information.

    path:        file2.bag
    version:     2.0
    duration:    3:47s (227s)
    start:       Nov 08 2012 16:19:48.77 (1352371788.77)
    end:         Nov 08 2012 16:23:36.39 (1352372016.39)
    size:        1.6 GB
    messages:    28305
    compression: none [1847/1847 chunks]
    types:       augv_msgs/InertialData     [757c72354c42518ae68ece93194dc095]
    gps_common/GPSFix          [3db3d0a7bc53054c67c528af84710b70]
    sensor_msgs/Image          [060021388200f6f0f447d0fcd9c64743]
    velodyne_msgs/VelodyneScan [50804fc9533a0e579e6322c04ae70566]
    topics:      /GPSFix                  11383 msgs    : gps_common/GPSFix         
                 /InertialData            11383 msgs    : augv_msgs/InertialData    
                 /basler_node/image_raw    2590 msgs    : sensor_msgs/Image         
                 /velodyne_packets         2949 msgs    :velodyne_msgs/VelodyneScan

/GPSFIX contains Latitude and longitude informations. I want to play the bag file from specific latitude and logitude value. How should i do this?

2014-01-28 17:31:18 -0500 marked best answer How to read latitude and longitude information from /GPSFix message in my bagfile?

Hi friends, i am having a bagfile containing /GPSFix information. i want to read and publish its information using gpsd. for that i used gpsd_client tutorial.

I have given rosbag node port number for gpsd_client otherwise it is showing error. When i run gpsd_client it says "GPSD opened" but my gpsd_subscriber is not printing latitude and longitude information.

Please help me to solve this problem.

This is my gpsd_client

mit@mit-HP-Pro-3330-SFF:~/Desktop/Bagfiles$ rostopic info /GPSFix 
Type: gps_common/GPSFix

Publishers: None

Subscribers: 
 * /gps_subscriber (<a href="http://mit-HP-Pro-3330-SFF:33912/">http://mit-HP-Pro-3330-SFF:33912/</a>)


mit@mit-HP-Pro-3330-SFF:~/Desktop/Bagfiles$ rosrun gpsd_client gpsd_client _host:=localhost _port:=33912
[ INFO] [1374726241.992697318]: GPSd opened

This is my gpsd_subscriber

 mit@mit-HP-Pro-3330-SFF:~/Desktop/gps_test$ rosrun gpsd_subscriber gpsTest

This is my gpsd_subscriber source code

#include <iostream>
#include <ros/ros.h>
#include <sensor_msgs/NavSatFix.h>
#include <sensor_msgs/NavSatStatus.h>


using namespace sensor_msgs;

void callback(const NavSatFixConstPtr &fix) {

  if (fix->status.status == NavSatStatus::STATUS_NO_FIX) {
    std::cout << "Unable to get a fix on the location." << std::endl;
    return;
  }

  std::cout << "Current Latitude: " << fix->latitude << std::endl;
  std::cout << "Current Longitude " << fix->longitude << std::endl;

}

int main(int argc, char **argv) {
  ros::init(argc, argv, "gps_subscriber");
  ros::NodeHandle nh;

  ros::Subscriber gps_sub = nh.subscribe("/GPSFix", 1, callback);

  ros::spin();
  return 0;
}
2014-01-28 17:31:17 -0500 marked best answer how to make ros node to communicate through serial port?

Hi, i have bag file containing /GPSFix. i want to feed this information to gps receiver in my gis application. gis application needs port address to connect. but how can i connect bagfile node to serial port or usb? can anyone help?

2014-01-27 00:48:39 -0500 received badge  Notable Question (source)
2013-12-19 02:22:09 -0500 received badge  Famous Question (source)
2013-12-06 03:25:07 -0500 received badge  Popular Question (source)
2013-12-03 03:26:40 -0500 received badge  Notable Question (source)
2013-12-01 18:27:15 -0500 received badge  Notable Question (source)
2013-12-01 18:25:47 -0500 asked a question Error while building project in QT

I want to work in ROS with QTCreator. I have to packages A and B in ros workspace. its location is /home/it/Desktop/rosspace/sandbox/A and /home/it/Desktop/rosspace/sandbox/B.

my environment variables are

 declare -x ROSLISP_PACKAGE_DIRECTORY="/opt/ros/fuerte/share/common-lisp/ros"
 declare -x ROS_DISTRO="fuerte"
 declare -x ROS_ETC_DIR="/opt/ros/fuerte/etc/ros"
 declare -x ROS_MASTER_URI="http://localhost:11311"
 declare -x ROS_PACKAGE_PATH="/home/it/Desktop/gps/sandbox/gps_sub:/home/it/Desktop/rosspace/sandbox:/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros"
 declare -x ROS_ROOT="/opt/ros/fuerte/share/ros"
 declare -x ROS_WORKSPACE="/home/it/Desktop/rosspace"

I have written this to ./bashrc

 source /home/mit/Desktop/rosspace/setup.bash 
 export ROS_PACKAGE_PATH=/home/it/Desktop/rosspace/sandbox:$ROS_PACKAGE_PATH

I opened QTCreator from terminal.

then open file or project->/home/it/Desktop/rosspace/sandbox/A/cmakelist.text

after choosing qt build directory and running cmake

i got following error:

  CMake Error at /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:99 (message):
  [rosbuild] rospack found package "A" at "", but the
  current directory is
  "/home/it/Desktop/rosspace/sandbox/A".  You should
  double-check your ROS_PACKAGE_PATH to ensure that packages are found in the
  correct precedence order.
  Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:177(_rosbuild_check_package_location)
  CMakeLists.txt:12 (rosbuild_init)


  [rosbuild] Building package A

please help me to open my project in QT

I am using Ubuntu 12.04, QTCreator latest version and ROS-Fuerte

2013-11-17 23:03:12 -0500 received badge  Popular Question (source)
2013-11-15 17:38:27 -0500 commented answer How to play video from bag file in QT?

Thank you. nice.

2013-11-15 17:37:44 -0500 commented answer How to know /GPSFix message availability?

Thank you so much for your answer. . .

2013-11-13 22:34:27 -0500 asked a question How to play video from bag file in QT?

I have an video in my bagfile.

I can play the video by rosrun image_view image_view image:=basler_node/image_color.

I want to show this video in separate GUI using QT. how to do this?

2013-11-13 16:15:26 -0500 received badge  Notable Question (source)
2013-11-12 21:17:02 -0500 edited question How to know /GPSFix message availability?

Below program will perfectly subscribe /GPSFIX value from rosbag and print Latitude Longitude values. I want this program to print the value 0 always even in the absence of /GPSFIX publisher. Because always i want to print 0 at first then followed by Lat/Long if publisher is available otherwise 0 alone always .

EDIT: Using this code how to check whether /GPS message is available through c++ program?

First i want to check availability of /GPSFix messagge after that i want to print LatLong like this format. That is value zero followed by lat/long message.

Program:

    #include "ros/ros.h"
    #include <gps_common/GPSFix.h>

    using namespace std;
    void GPSCallback(const gps_common::GPSFix::ConstPtr& msg)
    {
    printf("%f\n", msg->longitude); 
    printf("%f\n", msg->latitude);
    fflush(stdout);
    sleep(2);
    }

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

    ros::init(argc, argv, "listener");
    ros::NodeHandle n;
    ros::Subscriber sub = n.subscribe("/GPSFix", 10, GPSCallback);

    ros::spin();

    return 0;

    }

Current Output:

    Longitude: 80.0910
    Latitude: 13.1289

    Longitude: 80.0911
    Latitude: 13.1289

    Longitude: 80.0912
    Latitude: 13.1290

    Longitude: 80.0913
    Latitude: 13.1289

    Longitude: 80.0912
    Latitude: 13.1288

My expected output format if /GPSFix is available:

    0
    Longitude: 80.0910
    Latitude: 13.1289

    0        
    Longitude: 80.0911
    Latitude: 13.1289

    0
    Longitude: 80.0912
    Latitude: 13.1290

    0
    Longitude: 80.0913
    Latitude: 13.1289

    0
    Longitude: 80.0912
    Latitude: 13.1288

Incase /GPSFix is not available output should be like

    0
    0
    0
    0
    0
2013-11-12 21:16:11 -0500 received badge  Popular Question (source)