Questions tagged [python]

Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
105 views

Applying initial guessing to LiDAR point cloud for ICP processing in Graph SLAM

I am currently in the process of implementing Graph SLAM using ICP and g2o in python 2.7 The data I have are pose data (4 x 4 transformation matrix) and lidar data ( in the format of [x y z 1] with ...
2
votes
1answer
254 views

How to synchronise data for fusion in Kalman from multiple sensors with different timestamp information?

I'm using Kalman filter to track the position of a vehicle and receive position data from 2 sensors: A GPS sensor and an Ultrasonic sensor for which I want to implement sensor fusion into the Kalman. ...
2
votes
1answer
3k views

MSP (Multiwii Serial Protocol) receiving data with pyMultiWii issue

I want to get telemetry data from my flight controller (Matek F405-CTR) and send control commands to it via MSP protocol. I've already configured UART3 port on Matek in Inav configurator (look at pic)...
1
vote
0answers
43 views

Inverse Kinematics of Puma 566 giving low angle results with DH convention

I am new at the robotics area, and i need to deliver an activity until this week in my college based to solve the inverse kinematics problem from an article that doesn't have any code done, and after, ...
1
vote
1answer
598 views

ROS packages for *pre-planned* path navigation rather than path generation? (Turtlebot3/ROS)

I am working on a project in which users will create paths fully constrained in terms of position (using a separate piece of software), and a robot will periodically follow those paths. We are using a ...
1
vote
0answers
63 views

Pausing at positing in GRBL while holding motor current

I'm trying to get grbl to move the carriage of my 2D scanner to a specific position, pause there for a certain amount of time (until the sensor does its thing), and then proceed to the next position ...
1
vote
0answers
96 views

Mission Planner: How to create a custom Waypoint Command

I am trying to set up a waypoint in Mission Planner that causes the drone to hover, take sensor data from a custom sensor, then either land or continue hovering based off of what the sensor data says. ...
1
vote
0answers
102 views

help to find the bug for calculating inverse kinematic using jacobian

I am calculating inverse kinematic for 5dof robotic arm using Jacobian matrix (first time). i used following formulas to do my calculation and also implemented in my code. for more information please ...
1
vote
0answers
63 views

Writing IMU accelerometer data into as twist messages into cmd_vel

I am reading accelerometer data from the wiimote /wiimote/state topic. A sample of the data I'm working with is as follows: ...
1
vote
0answers
2k views

python code for closed form inverse kinematics solution

I solved the inverse kinematics of a 4DOF robotic arm (which is not planar) and I wrote this code bellow in python. The coordinates for each joint is: I considered the first three joints as a wrist ...
1
vote
0answers
296 views

Continual error attempting to use MicroPython with HC-SR04 sensor on Bit:Bot

On my Bit:Bot from 4Tronix ([see here])1 I have an HC-SR04 ultrasound sensor attached. It uses solely pin15, for both trig and echo. I am able to use Microsoft MakeCode 'block editor' to get a ...
0
votes
0answers
5 views

Threading on Microsoft AirSim with Python Throws Type Error

Hope everyone is doing well. I have just started use AirSim for some computer vision simulations. Right now I am trying to implement threading for navigation purposes with Python. As a starting point,...
0
votes
0answers
45 views

How to drive a motor by Python

I need to drive any small motor (with small delay) by Python without low level programming. What hardware and software I need? Does "Robot Mesh Studio" fit for this? I want to make a robotic ...
0
votes
0answers
37 views

How to combine URDF files in pybullet?

I have a URDF file for the Kinova Gen3 robotic arm (6 dof) and a URDF file for a suction end effector that was built for a UR5 arm. I am able to load the file for the arm along with a table and some ...
0
votes
0answers
47 views

Ardupilot - Dronekit Setting the Current Location of the Vehicle

hope you are all doing well. I am doing in a project in which I receive GPS data (Longitude, and Latitude) from an Android device via an SQL server. What I am trying to do is to send this Longitude - ...
0
votes
1answer
58 views

Relative scale problem

I am doing Monocular Visual Odometry, and I have problem with relative scale. Most of the time its value is between 0.8-1.1, but sometimes it goes crazy and it has value 3,4 and once it had value 25. ...
0
votes
0answers
84 views

6DOF kinematic robotic arm programm

I am trying to find a well documented library which I can use for my 6dof robotic arm (https://www.thingiverse.com/thing:1693444) But I cant find anything :( Does anyone have a python/c code for ...
0
votes
1answer
43 views

Eliminating drift generated from double integration of acceleration signal using Envelope Method

I'm trying to remove the drift generated upon the double integration of a noisy acceleration signal. But this question discusses only removing the drift upon single integration to generate velocity ...
0
votes
0answers
184 views

ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type

So I followed this guide to install opencv on Ubuntu 16.04 LTS https://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/. When I try running a python script that imports cv2 I get ...
0
votes
1answer
207 views

Are there any tutorials for OMPL in Python?

I want to learn and understand the Open Motion Planning Library (OMPL) through Python as I don't have much experience with C++. Almost all tutorials are written in C++ and there are some demos in ...
0
votes
1answer
118 views

ROS2 and TypeError when publishing custom message to Topic

I have defined a custom message: uint8[] data The custom message is imported in my Node class with no problems: ...
0
votes
1answer
61 views

Simulating sensor readings based on an existing Alan Variance Analysis

My goal is to model an accelerometer and a gyroscope based on real hardware. I understand deterministic errors like bias and scaling but the different types of non-deterministic errors are difficult. ...
0
votes
3answers
461 views

Path planning algorithm better than RRT* and Artificial Potential Field

Hello robotics stack exchange community, hope my message finds you well during these challenging times. I need an opinion regarding path planning algorithms. Goal I am looking for a path planning ...
0
votes
0answers
39 views

Use Realsense camera to get the camera image

I have to use LIDAR in my project. I was searching for some LIDARs with a camera and came across the Intel RealSense d400 series. I know it has a camera but please suggest a way to use that camera ...
0
votes
0answers
81 views

G-code to cartesian co-ordinate converter

Hope you all are doing well. So I built a 5 bar linkage mechanism using arduino and python.It uses 2 servos, an arduino mega, a 12v power supply,a dc-dc step down converter to power everything. The ...
0
votes
0answers
29 views

How to make x variable change each time and read its value from txt file

I am working on my undergraduate project and this is my first time in using use python to control parrot bebop 2 drone and use BCI or BMI technology. I have x variable (int) and I want to read its ...
0
votes
1answer
251 views

Plot a map using wheel encoder and IMU data

I want to plot a map( with matplotlib or any other library ) using a wheel encoder and IMU data. Eg:- For every 10cm robot moves it should draw line (in a graph) and draw angles depending on the data ...
0
votes
0answers
76 views

Real-time python reinforcement learning library

I'm looking for a reinforcement learning library that can be used for real-time robot control. What I first had in mind was ROS to describe the robot, Mujoco to simulate physics, and OpenAI gym to ...
0
votes
0answers
232 views

Python, Universal Robots, Ethernet problem

This is in regards to a UR 10 running 3.5.3.10825. For the script urx_get_robot.py ...
0
votes
0answers
376 views

What dependencies do I need for USB programing in python with pyUSB?

I am trying to get the usb.find command to work properly in a python script I'm writing on Angstrom for the Beagleboard. Here is my code: ...
-1
votes
1answer
150 views

How to subscribe message coming from a package of ROS into Python code of another package?

I am using darknet_ros_3d package and getting the published 3D coordinates. Now I need to subscribe these coordinates into a Python file (...