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

topkek's profile - activity

2021-02-17 15:48:30 -0500 received badge  Famous Question (source)
2020-02-19 15:08:33 -0500 received badge  Notable Question (source)
2020-02-19 15:08:33 -0500 received badge  Famous Question (source)
2019-09-03 15:28:28 -0500 received badge  Famous Question (source)
2019-08-19 14:55:50 -0500 marked best answer Robot is not moving to goal

I have a simulation in gazebo with two robots. I launch navigation file so i can send goals to a robot. I use this command to move robot to a goal

rostopic pub /r2/move_base_simple/goal geometry_msgs/PoseStamped '{header: {stamp: now, frame_id: "map"}, pose: {position: {x: 3.0, y: 2.0, z: 0.0}, orientation: {w: 1.0}}}'

robot looks lost in space and is randomly moving.

graph: image description

frames: https://files.fm/u/7gzgncpa

I want robot to move to its goal when i send the command.

Here's the launch file to launch two robots in gazebo simulation

<launch>

  <param name="/use_sim_time" value="true"/>



  <!-- Run GAZEBO World -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="$(find multi_pioneer)/worlds/clearpath_playpen.world"/> <!-- world_name is wrt GAZEBO_RESOURCE_PATH environment variable -->
    <arg name="paused" value="false"/>
    <arg name="use_sim_time" value="true"/>
    <arg name="gui" value="true"/>
    <arg name="headless" value="false"/>
    <arg name="debug" value="false"/>
  </include>

  <!-- Robot1 with diff drive -->
  <include file="$(find multi_pioneer)/launch/pioneer3dx.gazebo.launch">
    <arg name="robot_name" value="r1" />
    <arg name="robot_position" value="-x 0.0 -y -0.5 -z 0.0 -R 0 -P 0 -Y +1.57" />
  </include>

  <!-- Robot2 with diff drive -->
  <include file="$(find multi_pioneer)/launch/pioneer3dx.gazebo.launch">
    <arg name="robot_name" value="r2" />
    <arg name="robot_position" value="-x 0.0 -y 0.5 -z 0.0 -R 0 -P 0 -Y -1.57" />
  </include>



</launch>

Launch file to spawn a single robot

<launch>

  <arg name="robot_name" default="p3dx" />
  <arg name="robot_position" default="-x 0.0 -y 0.0 -z 0.01" />


  <group ns="$(arg robot_name)">

    <!-- Load the URDF into the ROS Parameter Server -->
    <param name="robot_description" command="$(find xacro)/xacro.py '$(find multi_pioneer)/xacro/p3dx/pioneer3dx.xacro'" />

    <!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
    <node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen" args="-urdf -model $(arg robot_name) -param robot_description $(arg robot_position) "/>

    <node pkg="robot_state_publisher" type="state_publisher" name="robot_state_publisher">
      <param name="publish_frequency" type="double" value="30.0"/>
      <param name="tf_prefix" type="string" value="$(arg robot_name)"/>
    </node>
  </group>

</launch>

File to launch navigation

<launch>
 <node name="map_server" pkg="map_server" type="map_server" args="$(find multi_pioneer)/maps/playpen_map.yaml" output="screen">
    <param name="frame_id" value="/map" />
  </node>

<!-- Robot 1 Localization & Navigation -->
  <include file="$(find multi_pioneer)/launch/navigation.launch">
    <arg name="tf_prefix" value="r1"/>
    <arg name="initial_pose_x" value="0.0"/>
    <arg name="initial_pose_y" value="-0.5"/>
    <arg name="initial_pose_a" value="1.57"/>
  </include>

  <!-- Robot 2 Localization & Navigation -->
  <include file="$(find multi_pioneer)/launch/navigation.launch">
    <arg name="tf_prefix" value="r2"/>
    <arg name="initial_pose_x" value="0.0"/>
    <arg name="initial_pose_y" value="-0.5"/>
    <arg name="initial_pose_a" value="-1.57"/>
  </include>

 <node pkg="tf" type="static_transform_publisher" name="odom_to_odom_r1" args="0.0 0.0 0.0 0.0 0.0 0.0 odom r1/odom 100" />
  <node pkg="tf" type="static_transform_publisher" name="odom_to_odom_r2" args="0.0 0.0 0.0 0.0 0.0 0.0 odom r2/odom 100" />
  <node pkg="tf" type="static_transform_publisher" name="map_to_odom" args ...
(more)
2019-08-03 13:30:50 -0500 received badge  Famous Question (source)
2019-03-01 16:29:21 -0500 marked best answer How to edit package source code?

I get the source code files for move base with apt-get source, but how do i put them in move_base directory so i can edit them there and it gets saved and compiled??

2018-11-24 07:16:05 -0500 received badge  Notable Question (source)
2018-10-08 01:56:04 -0500 received badge  Popular Question (source)
2018-10-06 08:45:54 -0500 asked a question How can I know if robots are seeing each other?

How can I know if robots are seeing each other? I have two robots in navigation in gazebo simulation. How can I find out

2018-09-14 07:50:31 -0500 edited question Move base doesn't work after some updates

Move base doesn't work after some updates 45 minutes ago I turned on Ubuntu and did some stupid ROS updates. After that

2018-09-14 07:47:40 -0500 edited question Move base doesn't work after some updates

Move base not working after some updates 45 minutes ago I turned on Ubuntu and did some stupid ROS updates. After that I

2018-09-14 07:47:27 -0500 asked a question Move base doesn't work after some updates

Move base not working after some updates 45 minutes ago I turned on Ubuntu and did some stupid ROS updates. After that I

2018-09-04 00:30:13 -0500 received badge  Popular Question (source)
2018-08-31 08:37:52 -0500 asked a question Robot follow another robot using move base

Robot follow another robot using move base I want one robot to follow another. I wrote this code so r2 can follow r1 by

2018-08-30 02:51:48 -0500 marked best answer I cant get move_base source files

I tried following this answer, but with apt-get source I always get this on any package

Reading package lists... Done
E: Unable to find a source package for ros-kinetic-move-base

I found source files on github but I want to get them in package folder. How can I get move_base source files so I can edit them, or any files source files?

EDIT: ok so i get the files with apt-get source, but how do i put them in move_base directory so i can edit them there and it gets saved and compiled??

2018-08-29 05:57:26 -0500 answered a question I cant get move_base source files

I just reinstalled ROS and git cloned navigation files. Now everything is working

2018-08-28 10:10:25 -0500 commented answer I cant get move_base source files

ok, i did it but now i get this error when running movebase node without editing anything in the package. ERROR: canno

2018-08-28 09:51:02 -0500 commented question I cant get move_base source files

i followed answers from that question and after sudo apt-get update it worked

2018-08-28 09:48:49 -0500 received badge  Notable Question (source)
2018-08-27 03:59:34 -0500 received badge  Notable Question (source)
2018-08-27 03:45:01 -0500 received badge  Popular Question (source)
2018-08-26 18:38:14 -0500 received badge  Popular Question (source)
2018-08-26 10:08:56 -0500 commented answer what is the best way to follow a moving target?

how do i get to move_base.cpp? i dont have it in movebase package and when i get it with apt-get source, i dont know how

2018-08-26 09:56:48 -0500 asked a question How to edit package source code?

How to edit package source code? I get the source code files for move base with apt-get source, but how do i put them in

2018-08-26 09:54:55 -0500 edited question I cant get move_base source files

I cant get move_base source files I tried following this answer, but with apt-get source I always get this on any packag

2018-08-26 09:26:51 -0500 commented question I cant get move_base source files

yes, still getting the same error EDIT: ok, i did it, thank you :)

2018-08-26 09:15:19 -0500 commented question I cant get move_base source files

yes, still getting the same error

2018-08-26 08:32:26 -0500 edited question I cant get move_base source files

I cant get move_base source files I tried following this answer, but with apt-get source I always get this on any packag

2018-08-26 08:31:31 -0500 asked a question I cant get move_base source files

I cant get move_base source files I tried following this answer, but with apt-get source I always get this on any packag

2018-08-01 13:24:23 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-23 11:26:56 -0500 commented question Navigation stack problem

anyone solved the issue?

2018-07-22 10:05:20 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-20 11:24:37 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-18 13:14:22 -0500 commented answer Robot is not moving to goal

No messages. I didnt even get new goal message in move base terminal when i set goal in rviz or with command.

2018-07-16 03:00:59 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-14 11:44:07 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-14 05:24:23 -0500 commented answer Robot is not moving to goal

I updated my question and now I'm using pioneer instead of husky. I dont get errors anymore but robot is still not movin

2018-07-14 05:22:50 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two robots. I launch navigation file so i can send goals

2018-07-10 05:37:23 -0500 commented answer Robot is not moving to goal

i should probably change all xacro and urdf files, add some namespaces or something for r1 and r2.

2018-07-10 05:15:19 -0500 commented answer Robot is not moving to goal

i should probably change all xacro and description files, add some namespaces or something for r1 and r2.

2018-07-06 11:05:52 -0500 commented answer Robot is not moving to goal

MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.amcl.message_notifier] rosconsole

2018-07-06 11:02:00 -0500 commented answer Robot is not moving to goal

MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.amcl.message_notifier] rosconsole

2018-07-06 11:01:49 -0500 commented answer Robot is not moving to goal

MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.amcl.message_notifier] rosconsole

2018-07-06 11:01:30 -0500 commented answer Robot is not moving to goal

I fixed in xacro files the problem. Topic for laser was /scan, now i have two files with topics husky1/base_laser/scan a

2018-07-06 08:14:48 -0500 commented answer Robot is not moving to goal

ok, i'll try to find out the problem

2018-07-06 07:30:18 -0500 commented answer Robot is not moving to goal

i updated graph and tf tree. i can see husky1/base_laser/scan connected to move base and amcl node.

2018-07-06 07:28:32 -0500 edited question Robot is not moving to goal

Robot is not moving to goal I have a simulation in gazebo with two husky robots. I launch move_base_mapless_demo.launch

2018-07-05 05:57:14 -0500 commented answer Robot is not moving to goal

still getting the same error [ WARN] [1530788166.220002256, 1323.100000000]: No laser scan received (and thus no pose u