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

Arpit's profile - activity

2017-04-06 08:34:38 -0500 received badge  Famous Question (source)
2016-08-31 07:45:17 -0500 received badge  Famous Question (source)
2016-08-31 07:45:17 -0500 received badge  Popular Question (source)
2016-08-31 07:45:17 -0500 received badge  Notable Question (source)
2016-08-02 20:33:57 -0500 received badge  Famous Question (source)
2016-05-09 02:06:44 -0500 received badge  Notable Question (source)
2016-03-23 06:49:53 -0500 received badge  Popular Question (source)
2016-03-23 01:18:11 -0500 asked a question Subscriber callback function

I have made a subscriber to pioneer/laser/scan for the scan values of laser on P3AT.

When I run the subscriber, it just doesn't stop. It keeps on running. I want only a single value of the scan i.e. the ranges[] array.

And also the value of any index in ranges[] array fluctuates ranges[i] - .2 to ranges[i] + .2

How to get only a single array ranges[] when subscribing to the scan?

P.S. I am using these lines of code and obstaclesCallBack is my function for printing the scan values.

ros::NodeHandle laser_n;
ros::Subscriber sub = laser_n.subscribe<sensor_msgs::LaserScan>("pioneer/laser/scan", 1000, obstaclesCallback);
2016-02-29 07:44:17 -0500 received badge  Notable Question (source)
2016-02-13 06:45:47 -0500 commented answer rviz Error - Global Status: Fixed frame [map] does not exist

amcl is running but timeout is occurring at obtaining the transformation map->base_link !

2016-02-13 06:44:02 -0500 received badge  Popular Question (source)
2016-02-11 02:55:41 -0500 asked a question rviz Error - Global Status: Fixed frame [map] does not exist

I loaded a map in rviz using the map_server. I made the pgm file of map using p3at robot in Gazebo. The map is loaded but showing error:

The error is : Fixed frame [map] does not exist.

I am not able to spawn the robot in rviz again.

2015-09-21 14:17:44 -0500 asked a question Spawning a p3at robot in gazebo

Hi I am trying to spawn a p3at robot in gazebo. I am facing a error in the urdf file. Error looks like -

 Msg Waiting for master.[ INFO] [1442861989.783415793]: Finished loading Gazebo ROS API Plugin.
 Msg Waiting for master
 [ INFO] [1442861989.784748923]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
 Msg Connected to gazebo master @ http://127.0.0.1:11345
 Msg Publicized address: 10.10.51.200
 [rospack] Error: package 'geometry' not found
 [librospack]: error while executing command
 [ INFO] [1442861990.183335154, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
 [FATAL] [1442861990.183827994, 0.022000000]: Package[geometry] does not have a path
 [ INFO] [1442861990.256869294, 0.091000000]: Physics dynamic reconfigure ready.

 Msg Connected to gazebo master @ http://127.0.0.1:11345
 Msg Publicized address: 10.10.51.200
 [spawn_urdf-4] process has finished cleanly
 log file: /home/arpit/.ros/log/ee8fc064-6092-11e5-8b86-b8763fea9d09/spawn_urdf-4*.log
 [gazebo_gui-3] process has finished cleanly
 log file: /home/arpit/.ros/log/ee8fc064-6092-11e5-8b86-b8763fea9d09/gazebo_gui-3*.log

ERROR IS GEOMETRY PACKAGE NOT FOUND !! I have that package in my home directory as well as in the directory of the ros ( roscd geometry ).

MY error is at this place in urdf file -

    <geometry name="pioneer_geom">
          <mesh filename="package://geometry/meshes/p3at_meshes/chassis.stl"/>
     </geometry>

Please help !! Thanks :)

PS I am new to ROS.

2015-09-17 02:01:45 -0500 received badge  Famous Question (source)
2015-09-15 23:20:11 -0500 commented answer Terminal Freezes after roslaunch event

Yeah! Thanks !! :)

2015-09-15 23:19:38 -0500 received badge  Scholar (source)
2015-09-15 23:19:35 -0500 received badge  Notable Question (source)
2015-09-15 15:01:55 -0500 received badge  Popular Question (source)
2015-09-15 13:42:32 -0500 commented question Terminal Freezes after roslaunch event

It does not launch the gazebo simulator with the p3at robot. It is not doing anything after this whereas the other launch files are launched in the gazebo simulator.

2015-09-15 12:55:01 -0500 asked a question Terminal Freezes after roslaunch event

I want to spawn a pioneer3at robot in gazebo through ros so I created a file called p3at.launch and made the corresponding urdf file. When I roslaunch it, it started normally but freezes. Terminal looks like this -

//Terminal

arpit@arpit-SVE15137CNB:/opt/ros/indigo/share/urdf$ roslaunch gazebo_ros p3at.launch

... logging to /home/arpit/.ros/log/ee1fb8ae-5bcf-11e5-97ce-b8763fea9d09/roslaunch-arpit-SVE15137CNB-16521.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://arpit-SVE15137CNB:54185/

SUMMARY
========

PARAMETERS

 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.13

NODES

 /
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    spawn_urdf (gazebo_ros/spawn_model)


auto-starting new master

process[master]: started with pid [16536]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to ee1fb8ae-5bcf-11e5-97ce-b8763fea9d09
process[rosout-1]: started with pid [16549]
started core service [/rosout]
process[spawn_urdf-2]: started with pid [16566]
process[robot_state_publisher-3]: started with pid [16567]

And here is the launch file

  <launch>
  <env name="GAZEBO_MODEL_PATH" value="$GAZEBO_MODEL_PATH:~/.gazebo/models" />
  <env name="GAZEBO_RESOURCE_PATH" value="$GAZEBO_RESOURCE_PATH:~/.gazebo/models" />

  <arg name="world" default="worlds/empty.world" />

  <arg name="urdf" default="$(find urdf)/pioneer3at.urdf" />
  <arg name="name" default="pioneer3at" />
  <param name="robot_description" command="$(find xacro)/xacro.py $(arg urdf)" />
  <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model $(arg name)" /> 
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />

  </launch>