Open in app
Home
Notifications
Lists
Stories

Write
Talha Hanif Butt
Talha Hanif Butt

Home

About

4 days ago

Basics before starting with Robotics — Part 9

Robots and Simulators — Previously, I wrote about Actions in ROS: Basics before starting with Robotics — Part 8 Actionsthanifbutt.medium.com Today, I will talk about common robot subsystems and describe how the ROS architecture handles them. We will also talk about some robots and simulators in which we can most easily experiment with them. Subsystems Like all complex machines, robots are most easily designed…

Ros

18 min read

Basics before starting with Robotics — Part 9
Basics before starting with Robotics — Part 9

Jul 31

Basics before starting with Robotics — Part 8

Actions in ROS — I started off with Hello World program in ROS, followed it with Topics and Services. Today I will discuss Actions in ROS. Basics before starting with Robotics — Part 5 Hello World in ROSthanifbutt.medium.com Basics before starting with Robotics — Part 6 Topics in ROSthanifbutt.medium.com Basics before starting with Robotics — Part 7 Services in ROSthanifbutt.medium.com While services are handy for simple get/set interactions like querying status and managing configuration, they don’t work well when you need to initiate a long-running task. For example…

Ros

13 min read

Basics before starting with Robotics — Part 8
Basics before starting with Robotics — Part 8

Jun 9

Basics before starting with Robotics — Part 7

Services in ROS — So, I have written about an initial Hello World program in ROS: Basics before starting with Robotics — Part 5 Hello World in ROSthanifbutt.medium.com I followed it up with Topics in ROS: Basics before starting with Robotics — Part 6 Topics in ROSthanifbutt.medium.com Today, I will discuss Services in ROS. Services are another way to pass data between nodes in ROS. Services are just synchronous remote procedure calls; they allow one node to call…

Ros

9 min read

Basics before starting with Robotics — Part 7
Basics before starting with Robotics — Part 7

May 27

Best Student Paper Award

Camera Calibration through Camera Projection Loss @ ICASSP 2022 — So, today I received the Best Student Paper Award at ICASSP 2022 for my work on Camera Calibration through Camera Projection Loss. The story behind the work goes as follows: It was 10th February, 2019 when I first met Dr. Murtaza Taj with an aim of doing some research work…

Camera Calibration

2 min read


Apr 25

Solution 11

TensorFlow, “‘module’ object has no attribute ‘placeholder’” — Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32) use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32) if you don't want to disable v2 completely. References TensorFlow, "'module' object has no attribute 'placeholder'" I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and…stackoverflow.com

Tensor Flow

1 min read

Solution 11

TensorFlow, “‘module’ object has no attribute ‘placeholder’”

Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32) use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32) if you don't want to disable v2 completely.

References

TensorFlow, "'module' object has no attribute 'placeholder'"

I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and…

stackoverflow.com

--

--


Apr 22

Solution 10

After installing ROS Kinetic, cannot import OpenCV — ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages' if ros_path in sys.path: sys.path.remove(ros_path) import cv2 sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages') References After install ROS Kinetic, cannot import OpenCV As pointed out, the source /opt/ros/kinetic/setup.bash command in your .bashrc modifies the PYTHONPATH to be: > echo…stackoverflow.com

Ros

1 min read

Solution 10

After installing ROS Kinetic, cannot import OpenCV

ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'

if ros_path in sys.path:

sys.path.remove(ros_path)

import cv2

sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')

References

After install ROS Kinetic, cannot import OpenCV

As pointed out, the source /opt/ros/kinetic/setup.bash command in your .bashrc modifies the PYTHONPATH to be: > echo…

stackoverflow.com

--

--


Apr 6

Basics before starting with Robotics — Part 6

Topics in ROS — I have previously written about some basics of ROS here: Basics before starting with Robotics — Part 5 Hello World in ROSthanifbutt.medium.com Things only get interesting when nodes communicate with each other, exchanging information and data. The most common way to do that is through topics. A topic is a name for a stream of messages with a defined type. …

Ros

13 min read

Basics before starting with Robotics — Part 6
Basics before starting with Robotics — Part 6

Apr 3

Solution 9

ModuleNotFoundError: No module named ‘rospkg’ — Try to change the shebang (line 1) according to the python version your ROS distro works with: For melodic or earlier: #!/usr/bin/env python2 For noetic or later: #!/usr/bin/env python3 References ModuleNotFoundError: No module named 'rospkg' I am new to ROS, I have a problem when I import rospy into my script file example.py and run it: It says: Traceback…stackoverflow.com

Ros

1 min read

Solution 9

ModuleNotFoundError: No module named ‘rospkg’

Try to change the shebang (line 1) according to the python version your ROS distro works with:

For melodic or earlier: #!/usr/bin/env python2

For noetic or later: #!/usr/bin/env python3

References

ModuleNotFoundError: No module named 'rospkg'

I am new to ROS, I have a problem when I import rospy into my script file example.py and run it: It says: Traceback…

stackoverflow.com

--

--


Apr 2

Basics before starting with Robotics — Part 5

Hello World in ROS — I am currently trying to learn ROS (Robot Operating System) by reading the book “Programming Robots with ROS A Practical Introduction to the Robot Operating System”. It’s a good read and I have enjoyed it thus far. What have I learned is as follows: The ROS Graph Some of the design goals of…

Hello World

18 min read

Basics before starting with Robotics — Part 5
Basics before starting with Robotics — Part 5

Mar 30

Solution 8

gnutls_handshake() failed: Error in the pull function. — sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev References Git: gnutls_handshake() failed: Error in the pull function Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share…stackoverflow.com

Git

1 min read

Solution 8

gnutls_handshake() failed: Error in the pull function.

sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev

References

Git: gnutls_handshake() failed: Error in the pull function

Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share…

stackoverflow.com

--

--

Talha Hanif Butt

Talha Hanif Butt

Research Associate, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

Following
  • umair haque

    umair haque

  • Faisal Khan

    Faisal Khan

  • Ahmar Shah, PhD (Oxford)

    Ahmar Shah, PhD (Oxford)

  • Verkada

    Verkada

  • Izhar Khalil

    Izhar Khalil

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable