Questions tagged [python]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Building trac_ik_python for Windows 10 using VisualStudio2019

I’m trying to build TracIK-python with Microsoft Visual Studio 2019 for Windows 10 and am making use of the available trac_ik_wrap.i file in the swig folder to ...
0
votes
2answers
78 views

/odom topics not matching ERROR

I have an existing ROS workspace which was built in C++. I am trying to implement a node built by The Construct in python which reads distance travelled from the ...
1
vote
0answers
31 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 ...
0
votes
1answer
34 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 ...
4
votes
1answer
148 views

Wait simulation time in a non realtime ROS simulation in Python

I want to control a quadrotor with a Python script and run the simulation as fast as my laptop can, not only in real time. I've modified my world and now the simulation runs with 7-10 real time factor....
0
votes
2answers
1k views

Uploading a trained ANN to an ESP32 board

I am working on a project that requires training a neural network with humidity and temperature values. After spending a while googling on how to run a neural network on ESP32 (Wemos LOLIN D32 Pro), I ...
1
vote
0answers
54 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
389 views

Transform timestamped messages recorded in a bag file using tf messages

Note: this question was also asked in the ROS official Q&A website, but even after one week nobody has given me an answer. I have a .bag which contains ...
0
votes
0answers
17 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
26 views

I want to actuate a motor based on a wav file, but it has too many samples per second

I am trying to actuate a simple DC motor based on a wav file. At the moment I am using the "cat vs dogs sounds" from Kaggle. One of the wav files in this DB looks like this: These audio files are ...
1
vote
1answer
993 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)...
0
votes
2answers
592 views

Error starting image_view video_recorder using launch file

To record .avi video, I am using video_recorder for the image_view package. I want to do this through the launch file. Here is the how I put it in there ...
2
votes
0answers
16 views

How to implement stop sign xml cascade [closed]

After training my RC car I use the following command: python drive.py --model trainmodel.h5 This give me Ip where I can go and see if the testing was successful ...
1
vote
0answers
26 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
170 views

Python PID tuning - Parrot Bebop 2 - Target follower - ROS

I'm developing a PID controller for making the drone follow a detected object. I used as reference these topics: Ttracking-objects-from-camera-pid-controlling-parrot-ar-drone Tracking-objects-...
0
votes
0answers
12 views

Custom Image and Depth map in ROS RTAB mapper

I read about RTAB package which builds 3D point clouds based on optical odometry. This fulfills my requirement, which will be clear by the end. The issue is, I don't have a Kinect camera. What I have ...
0
votes
1answer
34 views

What should i do to rebuild robot salto from Berkeley uni as a mechanical engineering undergrad?

What are the main components of robot salto? What are the necessary skills and knowledges to reproduce it? Also as you can see, i am a mecheng and i want to reproduce this robot as finishing project ...
1
vote
1answer
910 views

Is rospython subscriber thread safe?

I'm trying to write a python node, which has one class and two member functions as callback functions. so a TimeSynchronizer and Subscriber in a node. I saw in this link and tested that python ...
1
vote
1answer
55 views

Image data fusion

I have three cameras separated by some distance, looking at a scene. I have calibrated them using checkerboard and I have their respective intrinsic parameters and their pose and rotation matrix, I am ...
1
vote
0answers
21 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
26 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
1answer
165 views

ROS how to use published data in a python script (darknet_ros)

I'm writing a python script to run with darknet_ros and bebop_autonomy package in order to take the bounding boxes of the detected objects and depending on the position of the detected objects send ...
0
votes
0answers
47 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
2answers
1k views

How to make sense of IMU (BNO055) data

I have a project that I'm working on that needs data about which directions something has moved and how quickly from a given point (accelerometer and magnetometer?). I have the working python code for ...
4
votes
2answers
73 views

ROS Theoretical Question - How does work properly a node

I'm new at ROS and I'm trying to figure out how does the node works with a pyton/C++ code. I have two codes for the same situation: Use a Xbox Controller to move the turtle in turtlesim FIRST - ...
0
votes
0answers
65 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 ...
1
vote
2answers
72 views

Microcontrollers and Python

So I am fairly new to robotics however I do have some background with the python coding language. Recently I set myself the task of learning some basics for robotics just to increase my knowledge base....
2
votes
2answers
75 views

iRobot Create 2 Wake over Serial on Rpi

So this thread is similiar to this one: IRobot Create 2: Powering Up after Sleep All except I am trying to do this on an RPi. I have followed these intstruction: https://www.irobotweb.com/-/media/...
0
votes
1answer
54 views

Head movement using gyroscope

I have a headset that provides 3 axis gyroscope readings. I wish to find out movement of head for e.g. if a person is nodding left to right etc. But the headset give me values in angular velocity for ...
0
votes
1answer
399 views

Convert local coordinates of a moving IMU to global coordinates

I am trying to compare the performance of an IMU in motion against an optical tracking system. The IMU has an accelerometer and a gyroscope and gives output in the local IMU coordinate frames. The ...
4
votes
1answer
10k views

How to get a python node in ROS subscribe to multiple topics?

How a ROS node written in Python could subscribe to multiple topics and publish to multiple topics? All examples I found were for a single topic. Is this an event-driven model so subscription to ...
1
vote
1answer
102 views

Why won't my PID line follower work?

I'm trying to implement a PID based line follower. The robot has 2 line sensors with ranges from 0-200, with 0 being black and 200 being white. I'm trying to follow a black line. I'm struggling to ...
1
vote
0answers
64 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
43 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
1k 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 ...
0
votes
1answer
33 views

Fixing robot orientation using AR

I am creating a project where a robot needs to face a control panel and do some specific tasks. Some reference tags will be placed on the panel. I want to use the tags as AR reference and fix my ...
2
votes
1answer
280 views

Are both of C++ and Python necessary in ROS

I'm a newbie on ROS and I'm trying to figure out how ROS works so I'm installing ROS from source. I've found that most of ROS packages contains two kinds of codes: C++ and Python. For example, here ...
1
vote
1answer
98 views

How can I access the cliff sensors on an iRobot Create 2 via ROS/ Python?

I have an iRobot Create 2 and am currently using the create_autonomy package. Currently, they have cliff sensors as a "planned" feature. I see in the documentation that there are 4 cliff sensors (...
0
votes
1answer
66 views

Main not defined package python issue

My apologies but I've run out of ideas. I'm very new to python and stuck trying to execute the following code from this tutorial: ...
0
votes
1answer
28 views

Talking to a Flask Webserver from a Commandline

Have a bunch of work in setting up a flask webserver to control a robot from an app, and I'm not too pleased with the results for driving. Touch sensitivity issues are driving me nuts, and looking to ...
1
vote
1answer
73 views

How to become proficient in software development for an aspiring roboticist? [closed]

I am a masters student specializing in Robotics. I have a bachelors degree in Mechanical engineering and hence a bit sloppy with programming languages. MATLAB is one thing I am proficient in. But ...
1
vote
0answers
630 views

How can I send commands from raspberry pi model 3B to Seriously Pro 3 Flight controller? [duplicate]

I am trying to make a quadcopter that receives commands from my android mobile phone. I currently have the following: Raspberry Pi 3 Model B running on Raspbian. Pi Camera Seriously Pro F3 Flight ...
-1
votes
2answers
320 views

Using ROS to control a CMM (Coordinate Measuring machine)

i'm a senior, i really desperate to find answers here. i am building a robotic arm with bunch of low-cost sensors , motors and other actuators. i'm using PI 3 as my Microcontroller. I need helping to ...
3
votes
1answer
349 views

ROS Installation Error : ARCH LINUX

So I had this old lappy on which I used to play with ROS a lot then it got broken so I bought a new one and installed the same distro as that of old one i.e. arch linux. Now when I am installing the ...
2
votes
2answers
1k views

How to convert raw Pitot tube readings to air speed in m/s?

I'm building a kite flying robot, for which I want to measure air speed. So I combined a Pitot tube with an ADC and connected it to my Raspberry Pi using this tutorial. It seems to work perfect, in ...
0
votes
1answer
82 views

Programming the Formula Allcode to run a circuit

In our engineering science lesson, my class has been tasked with programming the Formula Allcode buggy to run a pre-specified circuit with smooth turns. The issue we are having is that we do not know ...
2
votes
1answer
3k views

Determine the relative camera pose given two RGB camera frames in openCV-python

I would like to determine the relative camera pose given two RGB camera frames. I assume there's overlap in field of view between the two cameras, what I am looking for ultimately is the rotation and ...
1
vote
0answers
89 views

Drone Feedback: Object Detection / Color Detection [closed]

I have been working on a code where an A.R Drone 2.0 will detect color and put a red dot in the middle of the image. I am using streaming for the drone. The goal is for the drone to detect a white ...
2
votes
1answer
2k views

Converting Image Coordinates to (x, y) Position for Robotic Arm

I have a Robotic Arm with a camera mounted above it looking down at a slight angle. Assuming I know the height of the camera, the angle of tilt and the small distance from the center of the robot ...
1
vote
0answers
241 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 ...