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

Stepan Kostusiev's profile - activity

2022-07-20 16:40:15 -0500 received badge  Necromancer (source)
2022-07-20 16:40:15 -0500 received badge  Teacher (source)
2019-12-16 11:20:27 -0500 received badge  Famous Question (source)
2019-09-13 16:51:09 -0500 marked best answer How to add parent frame map? Map not exists.

Map frame never exist before. I broadcast map -> odom when init node. When i use frameExists, map frame not exists. But in rqt_tf_tree it exists and connected to odom. Where can be problem?

    self.tf_broadcaster = tf.TransformBroadcaster()
    self.tf_listener = tf.TransformListener()

    self.tf_broadcaster.sendTransform((5.0, 3.0, 0.0),
        tf.transformations.quaternion_from_euler(0.0, 0.0, 0.0),
        rospy.Time.now(),
        "odom",
        "map")

    #This condition never True. 
    if self.tf_listener.frameExists("odom") and self.tf_listener.frameExists("map"):
        rospy.loginfo("transform exist!")
        t = self.tf_listener.getLatestCommonTime("odom", "map")
        position, quaternion = self.tf_listener.lookupTransform("odom", "map", t)
        print position, quaternion
        print("!!!!!!!!!")

Edit 1:

Main goal of my node to improve robot localization odometry based on imu and encoders. I calculated new position of robot in map frame. And want somehow to transform odometry frame respect to map frame.

My actual global localization node, where i want to use tf.

Bag file in which I test my node.

Output of rqt_tf_tree. image description

2019-01-31 14:53:20 -0500 received badge  Famous Question (source)
2019-01-09 15:52:06 -0500 received badge  Notable Question (source)
2018-11-01 08:37:58 -0500 received badge  Popular Question (source)
2018-10-31 08:16:57 -0500 commented question control loop missed its desired rate, but with low CPU load

Do you fixed your problem? I have the same.

2018-10-29 11:12:56 -0500 asked a question The robot does not follow path proper if goal in /map frame

The robot does not follow path proper if goal in /map frame Hello, I'm running ROS Kinetic in Ubuntu 16.04 on Lattepanda

2018-10-12 01:22:24 -0500 received badge  Notable Question (source)
2018-09-05 03:34:48 -0500 edited question How to add parent frame map? Map not exists.

How to add parent frame map? Map not exists. Map frame never exist before. I broadcast map -> odom when init node. Wh

2018-09-05 03:15:36 -0500 commented answer How to add parent frame map? Map not exists.

Thank you for answer. I try to add waits and broadcast this transform from other node, but it is no effect. I add my nod

2018-09-05 03:13:53 -0500 received badge  Popular Question (source)
2018-09-05 03:11:31 -0500 edited question How to add parent frame map? Map not exists.

How to add parent frame map? Map not exists. Map frame never exist before. I broadcast map -> odom when init node. Wh

2018-09-02 02:16:33 -0500 edited question How to add parent frame map? Map not exists.

How to add parent frame map? Map not exists. Map frame never exist before. I broadcast map -> odom when init node. Wh

2018-09-02 02:16:33 -0500 received badge  Editor (source)
2018-09-02 02:12:42 -0500 asked a question How to add parent frame map? Map not exists.

How to add parent frame map? Map not exists. Map frame never exist before. I broadcast map -> odom when init node. Wh

2018-08-08 06:45:38 -0500 answered a question Use nvsatfix in mapviz

MapViz already support NavSatFix. Use navsat plugin in mapviz.

2018-08-08 06:41:10 -0500 answered a question mapviz - transforming local xy coordinate frame to tile map lat/lon coordinate frame

To get lat/lon from Point Click Publisher you can set frame: /wgs84

2018-08-08 06:18:22 -0500 edited answer Using google maps to tell the robot where to go

You can use Mapviz with plugin Point Click Publisher. To set your goal to Navigation Stack you can use gps_goal. But P

2018-08-08 06:08:51 -0500 answered a question Using google maps to tell the robot where to go

You can use Mapviz with plugin Point Click Publisher. To set your goal to Navigation Stack you can use gps_goal. But P

2018-07-19 04:36:00 -0500 received badge  Enthusiast
2018-07-09 12:43:56 -0500 commented question Create a node with GUI

I read tutorial about GUI nodes in book Learning Robotics using Python. They use qt_creator. But using Python, not C++

2018-07-08 08:40:54 -0500 received badge  Supporter (source)