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

I'm using CAT simulation and I added sonars to the jeep in the simulation using hector gazebo but I keep getting an error in rviz.

asked 2017-04-10 14:17:30 -0600

nishad gravatar image

I keep getting the error " Transform [sender=unknown publisher]For frame [/sonar link]: Frame [/sonar link] does not exist "

I tried all the solutions provided in the ROS answers but still I face this issue.

Changes that I made to the simulation files:

  1. Added sonar in the .xacro file, .gazebo file.

2.Also added the static transform publisher in the .launch file as <node pkg="tf" type="static_transform_publisher" name="sonar1_link_tf_$(arg robot_name)" args="0 0 0 0 0 0 $(arg robot_name)/base_link $(arg robot_name)/sonar1_link 5"/>

3.I ran the rosrun --debug rviz rviz and tried publishing the link.

4.I made changes to the gazebo_ros_sonar.cpp in the hector gazebo package.

But I still getting the error while running rviz and adding the sonar in it.

Please, suggest me an alternative possible solutions. ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-22 09:38:50 -0600

SorinV gravatar image

updated 2017-05-22 09:39:40 -0600

The problem is the name of the frame that needs to be exactly as the name of the link. Example:

<link name="sonar1_link">
...
</link>
<plugin ...>
        ...
        <frameId>sonar1_link</frameId>
</plugin>
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-04-10 14:17:30 -0600

Seen: 144 times

Last updated: May 22 '17