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

Tima1995's profile - activity

2023-04-06 01:17:36 -0500 received badge  Popular Question (source)
2023-04-06 01:17:36 -0500 received badge  Famous Question (source)
2023-04-06 01:17:36 -0500 received badge  Notable Question (source)
2022-03-19 19:32:55 -0500 received badge  Famous Question (source)
2022-03-19 19:32:55 -0500 received badge  Notable Question (source)
2021-06-11 13:58:50 -0500 received badge  Famous Question (source)
2020-11-01 22:24:27 -0500 received badge  Famous Question (source)
2020-10-01 05:37:17 -0500 received badge  Notable Question (source)
2020-04-17 15:42:40 -0500 received badge  Famous Question (source)
2020-04-14 04:06:03 -0500 received badge  Famous Question (source)
2020-03-26 17:40:50 -0500 received badge  Notable Question (source)
2020-03-08 07:49:05 -0500 received badge  Famous Question (source)
2020-02-25 08:26:20 -0500 received badge  Famous Question (source)
2020-02-06 09:50:43 -0500 received badge  Popular Question (source)
2020-02-06 09:50:43 -0500 received badge  Notable Question (source)
2020-01-27 06:58:41 -0500 received badge  Notable Question (source)
2020-01-16 02:36:41 -0500 received badge  Famous Question (source)
2019-12-12 23:46:49 -0500 received badge  Famous Question (source)
2019-11-09 02:30:16 -0500 received badge  Popular Question (source)
2019-11-02 20:02:51 -0500 received badge  Notable Question (source)
2019-10-31 08:09:14 -0500 commented answer Unstable Communication between ROS Node and Robot

So that the data is stored for some time? I thought that this one is for slow-changing data as siad in the documentation

2019-10-31 08:05:26 -0500 commented answer Unstable Communication between ROS Node and Robot

So that the data is stored for some time? I will try that one out!

2019-10-31 04:49:57 -0500 commented answer Unstable Communication between ROS Node and Robot

The problem for me is, if I just publish once, without the time loop, the robot rarely gets the message. That's why I am

2019-10-31 04:34:37 -0500 commented answer Remapping navigation topics for own nodes

Thanks for the answer. That worked out fine!

2019-10-31 04:34:20 -0500 marked best answer Remapping navigation topics for own nodes

Hello ROS forum,

I am just trying to make my navigation algorithm "user-friendly" and started using the navigation package for ROS and the turtlebot3. There, after a map is created with a SLAM algo, I choose the estimated position of the robot and the goal position. I already introduced both topics (initialpose, move_base_simple/goal) to my own navigation and now the problem arises. When I use the SLAM package (with RVIZ) and explore the map and after exploration I choose the goal position, that does not result in any problems (the start position is not needed here, as the robot knows where he is in the map he just generated . The robot starts navigating from the position where he already is to the goal.

However I want to generate a map and upload it into RVIZ like in navigation package. There, I choose the start and goal position and the robot shall start navigating. Now I want my algo to execute the navigation and not the algo from the navigation package. Thats why I remaped the topic names in the navigation launch file like the following:

<launch>
    ...
    <remap from="move_base_simple/goal" to="move_base_simple/goal_dqn" />
    <remap from="initialpose" to="initialpose_dqn" />
    ...
</launch>

Still, if I choose the positions, the navigation node starts working and not my own. I then made a test within the SLAM package and launched the SLAM also with the remapping of the nodes above. And then my code starts working fine. My question is now, why does the navigation package algorithm also starts workin although i changed the topic names for the start and goal position (normally the algo shouldn´t do anything)?

As some kind of "emergency solutuion" I changed the published navigation topic to publish to the cmd_vel_1 topic so it does´t publish anything relevant for the robot. But then it is still processing which should´t be.

Thanks in advance!

Here the full .launch file for the navigation package:

<launch>
  <!-- Arguments -->
  <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
  <arg name="map_file" default="$(find turtlebot3_navigation)/maps/map.yaml"/>
  <arg name="open_rviz" default="true"/>
  <arg name="move_forward_only" default="false"/>

  <remap from="move_base_simple/goal" to="move_base_simple/goal_dqn" />
  <remap from="initialpose" to="initialpose_dqn" />

  <!-- Turtlebot3 -->
  <include file="$(find turtlebot3_bringup)/launch/turtlebot3_remote.launch">
    <arg name="model" value="$(arg model)" />
  </include>

  <!-- Map server -->
  <node pkg="map_server" name="map_server" type="map_server" args="$(arg map_file)"/>

  <!-- AMCL -->
  <include file="$(find turtlebot3_navigation)/launch/amcl.launch"/>

  <!-- move_base -->
  <include file="$(find turtlebot3_navigation)/launch/move_base.launch">
    <arg name="model" value="$(arg model)" />
    <arg name="move_forward_only" value="$(arg move_forward_only)"/>
  </include>

  <!-- rviz -->
  <group if="$(arg open_rviz)"> 
    <node pkg="rviz" type="rviz" name="rviz" required="true"
          args="-d $(find turtlebot3_navigation)/rviz/turtlebot3_navigation.rviz"/>
  </group>
</launch>

And here the move_base .launch file:

<launch>
  <!-- Arguments -->
  <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc ...
(more)
2019-10-28 02:50:55 -0500 received badge  Popular Question (source)
2019-10-27 05:54:26 -0500 commented question Remapping navigation topics for own nodes

Thanks for the response! I just added the .launch files for the navigation package and for the move_base package.

2019-10-27 05:53:31 -0500 edited question Remapping navigation topics for own nodes

Remapping navigation topics for own nodes Hello ROS forum, I am just trying to make my navigation algorithm "user-frien

2019-10-26 08:41:05 -0500 commented answer Unstable Communication between ROS Node and Robot

When running the code above, the following mistake occure for the node that publishes the action: [WARN] [1572096179.848

2019-10-26 08:31:02 -0500 commented answer Unstable Communication between ROS Node and Robot

Hello Delb and thanks for the answer! The point for me is, that the navigation node that publishes the action needs in a

2019-10-26 08:30:49 -0500 commented answer Unstable Communication between ROS Node and Robot

Hello Delb and thanks for the answer! The point for me is, that the navigation node that publishes the action needs in a

2019-10-26 08:29:58 -0500 commented answer Unstable Communication between ROS Node and Robot

Hello Delb and thanks for the answer! The point for me is, that the navigation node that publishes the action needs in a

2019-10-26 04:17:03 -0500 asked a question Remapping navigation topics for own nodes

Remapping navigation topics for own nodes Hello ROS forum, I am just trying to make my navigation algorithm "user-frien

2019-10-26 03:03:55 -0500 received badge  Notable Question (source)
2019-10-25 06:45:57 -0500 received badge  Famous Question (source)
2019-10-22 03:14:34 -0500 received badge  Notable Question (source)
2019-10-21 11:48:40 -0500 received badge  Popular Question (source)
2019-10-21 04:31:28 -0500 received badge  Popular Question (source)
2019-10-20 08:15:02 -0500 edited question Unstable Communication between ROS Node and Robot

Unstable Communication between ROS Node and Robot Hey ROS Forum, I am just trying to make my robot navigate from a init

2019-10-20 08:12:57 -0500 received badge  Notable Question (source)
2019-10-20 08:12:28 -0500 asked a question Unstable Communication between ROS Node and Robot

Unstable Communication between ROS Node and Robot Hey ROS Forum, I am just trying to make my robot navigate from a init

2019-10-16 15:07:58 -0500 commented answer Build a a own navigation using RVIZ for initial and goal position

Thanks for the answer! Regarding map_server , I am not very common with RVIZ. Then I have to have a deeper look at that

2019-10-16 15:07:31 -0500 marked best answer Build a a own navigation using RVIZ for initial and goal position

Hey guys,

I am right now trying to build up my own navigation solution. I succesfully made it to let my robot start from a initial to a goal position using my own navigation algo. Now I am trying to use RVIZ for setting the initial and goal position by simply marking it on the map as estimations. I saw, that the turtlebot uses the same solution for it` navigation program. I had a look at that one and it seems pretty complex with the amcl package etc.

The only thing I need is getting the initial and goal position as coordinates as input for my algo. The precision of the localization is not a priority for me. But here comes my question. I can use

rospy.wait_for_message('move_base_simple/goal', PoseStamped)
rospy.Subscriber('move_base_simple/goal', PoseStamped, self.update_goal)

to get the goal position, but is there also something to get the initial position?

Secondly, I tried to use

rosrun map_server map_server map.yaml

for loading my map but nothing happened. Is there another command to get into the GUI where I can load my map and choose the positions for goal and start?

Kind regards and thanks in advance!

2019-10-16 15:07:29 -0500 commented answer Build a a own navigation using RVIZ for initial and goal position

Thanks for the answer! Regarding map_server , I am not very common with RVIZ. Then I have to have a deeper look at that

2019-10-16 12:47:51 -0500 asked a question Build a a own navigation using RVIZ for initial and goal position

Build a a own navigation using RVIZ for initial and goal position Hey guys, I am right now trying to build up my own na

2019-10-16 11:40:13 -0500 commented answer Problems with publishing a cmd_vel message

Hello again, i have one additional question. I tried to implement that solution into a bigger code. There, depending on

2019-10-16 11:37:46 -0500 marked best answer Problems with publishing a cmd_vel message

Hey,

I am just trying to send my robot a msg that he starts moving forward. When it comes to receiving a msg, I can use rospy.wait_for_message to be sure that one has received that one. When it comes to moving the bot around, normally that worked well with the following code:

def moving(self): 
   self.pub_cmd_vel = rospy.Publisher('cmd_vel', Twist, queue_size=5) 
   vel_cmd = Twist() 
   vel_cmd.linear.x = 0.1 
   self.pub_cmd_vel.publish(vel_cmd)

But the robot wasn´t moving. That´s why I implemented this code, which was working again:

def moving(self): 
       self.pub_cmd_vel = rospy.Publisher('cmd_vel', Twist, queue_size=5) 
       self.finish = True 
       while self.finish: 
          vel_cmd = Twist() 
          vel_cmd.linear.x = 0.1 
          self.pub_cmd_vel.publish(vel_cmd)

My question is now, why is the one option working but the other don´t.

Thanks for your help!

2019-10-16 11:37:46 -0500 commented answer Problems with publishing a cmd_vel message

Hello again, i have one additional question. I tried to implement that solution into a bigger code. There, depending on