شار الأسلحة النووية، والتصدي للتحديات المرتبطة بالطاقة والتحديات البيئية.
ArabicEverybody makes mistakes, as it is only human. But there are a very few among us who actually learn from our mistakes. The first step is to accept your mistake and make peace with it, and only then can you expect yourself to make a change.
This is what celebrated author Paulo Coelho has to say on repeating your mistakes, “When you repeat a mistake, it is not a mistake anymore: it is a decision.”
Here are few mistakes that smart people never make twice, something that the rest of us can learn from:
© The Quote
As the founder of Amazon, Jeff Bezos has said, “If you double the number of experiments you do per year, you are going to double your inventiveness.”
You cannot get a different result if you put the same constants in the same equation. If you know smoking or drinking is making your health worse, then you need to quit it and not keep dreaming about quitting someday. If you want to change the end result, you need to change the input as well.
© AZ Quote`
Your friends might be planning a trip, but if you join them even though it is out of your budget, then you are in trouble. You might be having a serious problem of always being in debt. In simple words, you need to learn how to live under your means. Smart people never make that mistake twice. If they know skipping a latte can help them save Rs. 6,000 a year, then they will save it and will take the advantage of an opportunity of investing when it knocks on their door.
It is easy to lose sight of the big picture when you get busy in the daily schedule of your work life. You may skip working hard once in a while, come late to office or take a leave without informing on time. These could be some of the factors that may be taken into account at the time of your appraisals. Now, maybe getting a 50 percent raise this year was your particular goal but you lost the motivation to chase down the dream somewhere in between.
© Thinkstock
Take this particular relationship for instance. A partner in a relationship always acts as a victim and another one acts as the one who is given the responsibility to solve his partners' problem. Do you think this relationship can thrive? Can someone solve your problems for you? No. The person who is trying to solve the problem in such situations often fails, as he is doing it for the sake of being acceptable or liked in favor of solving that problem.
After learning a lesson the hard way, smart people do not indulge in such a relationship or consider using such metrics to measure their happiness.
Everyone knows that it is practically impossible to make everyone happy, also that it is a toxic practice. However, smart people know the importance of authenticity and very rarely change their behavior for the sake of pleasing the ones before them. The more authentic your behavior is, you'll find yourself in a better circle of people who respect you.
For example, in Russia, people often speak out what they have in mind and not what they are expected to say, as per the culture followed in western countries. They prefer keeping it straight and honest, even if it sounds rude at first. They believe in speaking their mind and not what others want to hear. Now, you might be thinking how does that help them? Shouldn't one be always polite? Well, such a level of honesty helps them in developing trust. They don't tend to fake it just to be liked.
Smart people are fully aware that no one can change them besides themselves, nor do they possess the ability to bring about a major change in someone else.
Many people often fight their instincts and go ahead with relationships, believing that they can change certain actions by their partner, only to fail. The simple truth is that you cannot change anyone, but only yourself or your circle of people you hang out with.
Welcome To MensXP#!/usr/bin/env python
import tf
import math
import rospy
import untangle
from tf2_msgs.msg import TFMessage
from visualization_msgs.msg import Marker
from ar_track_alvar_msgs.msg import AlvarMarkers

mode = 0
width = 0.0
height = 0.0
top_left_x = 0
top_left_y = 0
marker_size = 0.0
master_marker = '0'
tf_broadcaster = None
marker_publisher = None

def init():
    global marker_publisher, master_marker, tf_broadcaster
    global width, height, top_left_x, top_left_y, mode, marker_size
    rospy.init_node('ar_helipad')
    # Mode 0 : Helipad with 2 ar tags in the corners
    # Mode 1 : Helipad that consists only of a ar marker
    mode = rospy.get_param("~mode", 0)
    if mode == 0:
        xml = rospy.get_param("~xml_file", "bundles/helipad1.xml")
        xml_file = untangle.parse(xml)
        master_marker = xml_file.multimarker.marker[0]['index']
        top_left_x = float(xml_file.multimarker.marker[0].corner[3]['x'])
        top_left_y = float(xml_file.multimarker.marker[0].corner[3]['y'])
        bottom_right_x = float(xml_file.multimarker.marker[1].corner[1]['x'])
        bottom_right_y = float(xml_file.multimarker.marker[1].corner[1]['y'])
        width = abs(bottom_right_x) + abs(top_left_x)
        height = abs(bottom_right_y) + abs(top_left_y)
        print 'The helipad has a width of'+ str(width) + 'cm.'
        print 'The helipad has a height of'+ str(height) + 'cm.'
        width /= 100
        height /= 100
        top_left_x /= 100
        top_left_y /= 100
    elif mode == 1:
        master_marker = rospy.get_param("~marker_index", '3')
        marker_size = rospy.get_param("~marker_size", 5.4)
    tf_broadcaster = tf.TransformBroadcaster()
    marker_publisher = rospy.Publisher('ar_helipad_marker', Marker, queue_size=1)
    rospy.Subscriber("tf", TFMessage, tf_callback)
    while not rospy.is_shutdown():
        rospy.spin()

def tf_callback(tf2):
    global master_marker, tf_broadcaster
    global width, height, mode, marker_size
    for tf in tf2.transforms:
        if tf.child_frame_id == 'ar_marker_' + master_marker:
            if mode == 0:
                tf_broadcaster.sendTransform(
                    (width / 2 + top_left_x, -height / 2 + top_left_y, 0),
                    (0, 0, 0, 1.0),
                    rospy.Time.now(),
                    'helipad',
                    'ar_marker_' + master_marker)

                marker = Marker()
                marker.header.frame_id = 'ar_marker_' + master_marker
                marker.header.stamp = rospy.Time.now()
                marker.ns = 'ar_helipad'
                marker.id = 0
                # Based on http://docs.ros.org/api/visualization_msgs/html/msg/Marker.html
                # The shape code for the cube (rectangle) is 1
                # The add/modify action is 0
                marker.type = 1
                marker.action = 0
                marker.color.r = 1.0
                marker.color.g = 1.0
                marker.color.b = 0.0
                marker.color.a = 1.0
                marker.scale.x = width
                marker.scale.y = height
                marker.scale.z = 0.001
                marker.pose.position.x = width / 2 + top_left_x
                marker.pose.position.y = -height / 2 + top_left_y
                marker.pose.position.z = 0
                marker.pose.orientation.x = 0
                marker.pose.orientation.y = 0
                marker.pose.orientation.z = 0
                marker.pose.orientation.w = 1.0
                # TODO change duration here?
                marker.lifetime = rospy.Duration(1);
                marker_publisher.publish(marker)
            elif mode == 1:
                tf_broadcaster.sendTransform(
                    (0, 0, 0),
                    