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

pravardhan's profile - activity

2023-07-14 05:38:03 -0500 received badge  Nice Question (source)
2022-04-14 13:55:34 -0500 received badge  Famous Question (source)
2022-04-14 13:55:34 -0500 received badge  Notable Question (source)
2021-07-18 23:46:51 -0500 received badge  Student (source)
2020-07-30 08:20:46 -0500 received badge  Famous Question (source)
2020-07-30 08:20:46 -0500 received badge  Notable Question (source)
2020-05-27 06:59:29 -0500 received badge  Popular Question (source)
2020-05-26 04:27:06 -0500 commented question Gmapping SLAM does not work on a real Turtlebot3 waffle (no map received)

Expand LaserScan in rviz and set the topic to /scan, looks like the values are being published correctly so they should

2020-05-19 20:51:51 -0500 commented answer Who publishes the map frame?

@mgruhler Sorry but I think you misunderstood my issue, It's not that I can't "SEE" the scan properly, so changing the s

2020-05-19 20:42:30 -0500 marked best answer Who publishes the map frame?

ROS Melodic, Ubuntu18, Gazebo9

Issue: Not able to visualize laser scan data in rviz

Error: No tf data. Actual error: Fixed Frame [map] does not exist

Steps to recreate:

  1. Launch gazebo with ros
    roslaunch gazebo_ros empty_world.launch
  2. Insert Hokuyo laser sensor. Go to the insert tab in gazebo and add the hokuyo model to the world. Also add a few blocks near the sensor (for visualization).
  3. Open rviz
    rviz

Rviz gives the error as mentioned above. I have done rostopic list and saw that there was /laser/scan topic, but there was no /tf topic. I added the LaserScan visualisation to rviz.

I did rostopic echo on /laser/scan and the data was actually being published properly. I am not doing slam or anything, I just want to visualize the scan data in rviz.

Who publishes this map frame? Should I be publishing this? If so, how should I?

2020-05-19 20:42:30 -0500 received badge  Scholar (source)
2020-05-19 20:41:47 -0500 commented answer Who publishes the map frame?

Thank You! This worked. I understand that the key here was the *_state_publisher nodes. rostopic info showed that the tf

2020-05-19 20:41:09 -0500 commented answer Who publishes the map frame?

Thank You! This worked. I understand that the key here was the *_state_publisher nodes. rostopic info indeed showed that

2020-05-19 20:01:38 -0500 commented question Gmapping SLAM does not work on a real Turtlebot3 waffle (no map received)

After running bringup, check if the topics are being published or not using rostopic echo <topicName>

2020-05-19 10:19:13 -0500 received badge  Popular Question (source)
2020-05-18 07:10:06 -0500 commented answer Who publishes the map frame?

The frame_id in the /laser/scan topic is indeed set to map. But in rviz the dropdown menu for Fixed Frame is empty. Even

2020-05-18 04:19:28 -0500 commented answer Who publishes the map frame?

There are no tf frames at all. As u can see in the above comment that the frame is set to map in the plugin, but there a

2020-05-18 04:16:42 -0500 commented question Who publishes the map frame?

The included hokuyo model does use a laser plugin. <plugin name="laser" filename="libRayPlugin.so" /> <plu

2020-05-18 02:15:17 -0500 asked a question Who publishes the map frame?

Who publishes the map frame? ROS Melodic, Ubuntu18, Gazebo9 Issue: Not able to visualize laser scan data in rviz Error

2020-05-18 01:43:09 -0500 marked best answer roslaunch is not launching all nodes

I am using ros melodic on ubuntu18. I was following the tutorials on tf2, so after going through the broadcaster and listener, the start demo launch file is not launching the listener node. What is even weirder to me is that it works (without giving an error) when I launch the file directly from the folder i.e.

roslaunch start_demo.launch

instead of

roslaunch learning_tf2 start_demo.launch

Here is my launch file

<launch>
<node pkg="turtlesim" type="turtlesim_node" name="sim"/>
<node pkg="turtlesim" type="turtle_teleop_key" name="teleop" output="screen"/>


<node name="turtle1_tf2_broadcaster" pkg="learning_tf2" type="turtle_tf2_broadcaster.py" respawn="false" output="screen" >
  <param name="turtle" type="string" value="turtle1" />
</node>
<node name="turtle2_tf2_broadcaster" pkg="learning_tf2" type="turtle_tf2_broadcaster.py" respawn="false" output="screen" >
  <param name="turtle" type="string" value="turtle2" /> 
</node>
<node name="turtle_listener" pkg="learning_tf2" type="turtle_tf2_listener.py" output="screen"/></launch>

I have done things like deleting my devel and build folders, running catkin_make, sourcing setup.bash, but still the same issue. Am I missing something here? When I run from the folder directly:

NODES
  /
    sim (turtlesim/turtlesim_node)
    teleop (turtlesim/turtle_teleop_key)
    turtle1_tf2_broadcaster (learning_tf2/turtle_tf2_broadcaster.py)
    turtle2_tf2_broadcaster (learning_tf2/turtle_tf2_broadcaster.py)
    turtle_listener (learning_tf2/turtle_tf2_listener.py)

When I reference through package:

NODES
  /
    sim (turtlesim/turtlesim_node)
    teleop (turtlesim/turtle_teleop_key)
    turtle1_tf2_broadcaster (learning_tf2/turtle_tf2_broadcaster.py)
    turtle2_tf2_broadcaster (learning_tf2/turtle_tf2_broadcaster.py)

It's the same launch file! What am I missing here?

2020-05-18 01:40:30 -0500 answered a question roslaunch is not launching all nodes

I am sorry, I realized the mistake later. What's happening is that I had another workspace with the same package name an

2020-05-10 03:47:03 -0500 asked a question roslaunch is not launching all nodes

roslaunch is not launching all nodes I am using ros melodic on ubuntu18. I was following the tutorials on tf2, so after