ros / geometry_tutorials

ROS geometry_tutorials stack migrated from https://kforge.ros.org/geometry/tutorials/branches
32 stars 53 forks source link

Problem with tutorial " Using stamped datatypes with tf2::MessageFilter" #31

Closed Cristian-wp closed 3 months ago

Cristian-wp commented 4 years ago

Hi, I am trying to learn how to use tf2 with the tutorial but I have some problems with one. I am working with Ubuntu 18.04 LTS with ROS Melodic.

I have a problem with this one: http://wiki.ros.org/tf2/Tutorials/Using%20stamped%20datatypes%20with%20tf2%3A%3AMessageFilter

I have undestand that I have to wait when transforms are available, but I have wait 30min and nothings happen...

~/catkin_ws$ roslaunch turtle_tf2 turtle_tf2_sensor.launch 
... logging to /home/kris/.ros/log/bd866ec2-f819-11ea-ae4a-98af65c0bde5/roslaunch-OMEN-11677.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://OMEN:38359/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.7
 * /scale_angular: 2.0
 * /scale_linear: 2.0
 * /turtle1_tf2_broadcaster/turtle: turtle1
 * /turtle2_tf2_broadcaster/turtle: turtle2

NODES
  /
    sim (turtlesim/turtlesim_node)
    teleop (turtlesim/turtle_teleop_key)
    turtle1_tf2_broadcaster (turtle_tf2/turtle_tf2_broadcaster.py)
    turtle2_tf2_broadcaster (turtle_tf2/turtle_tf2_broadcaster.py)
    turtle_pointer (turtle_tf2/turtle_tf2_listener.py)
    turtle_pose_stamped_publisher (turtle_tf2/turtle_tf2_message_broadcaster.py)

auto-starting new master
process[master]: started with pid [11687]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to bd866ec2-f819-11ea-ae4a-98af65c0bde5
process[rosout-1]: started with pid [11698]
started core service [/rosout]
process[sim-2]: started with pid [11702]
process[teleop-3]: started with pid [11706]
process[turtle1_tf2_broadcaster-4]: started with pid [11707]
Reading from keyboard
---------------------------
Use arrow keys to move the turtle. 'q' to quit.
process[turtle2_tf2_broadcaster-5]: started with pid [11714]
process[turtle_pointer-6]: started with pid [11715]
process[turtle_pose_stamped_publisher-7]: started with pid [11716]

These are my topics:

~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/tf
/tf_static
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
/turtle2/cmd_vel
/turtle2/color_sensor
/turtle2/pose
/turtle3/cmd_vel
/turtle3/color_sensor
/turtle3/pose
/turtle_point_stamped

Can someone please help me? Thank you in advance! :)

M010 commented 3 years ago

https://answers.ros.org/question/360425/problem-with-leading-when-running-tf2messagefilter-tutorial/ This may help someone. In my case I change m /opt/ros/melodic/lib/turtle_tf2/turtle_tf2_message_broadcaster.py /world to world. I know this is a monkey patch.)

ahcorde commented 3 months ago

Melodic is EOL, closing this issue. Feel free to reopen the issue if this is still happening in newer versions