Use this tag for physically moving systems. For example robots, or electronic or pneumatic actuators.
Questions tagged [motion]
584 questions
1
vote
1 answer
Inconsistency in ODE solution using solve_ivp when adding events
I am using scipy.solve_ivp to solve an ODE in a loop, such that in every iteration I change some term in the ODE (which is like the force applied).
In terms of my problem - I just cant seem to understand why when I track events of zero crossing the…

Hadar
- 658
- 4
- 17
1
vote
1 answer
I want to move a square in a circular motion in java processing
This is a school project so i cannot use a lot of functions like translate or rotate. I have to use basic trigonometry to do this. So I have made a square and I need it to move in a circular motion 360 degrees with one of it's point constant and not…

Mazino
- 11
- 1
1
vote
0 answers
Selecting ROI on video and tracking movement in the selected area. OpenCV\Python
I ran into an error. I need to track motion in a specific area of a video. But when I try to crop a frame using ROI or a rectangle, Python throws the following error:
Traceback (most recent call last):
File "C:\Users\Nitro 5\Desktop\sad.py", line…

Mikhail
- 11
- 2
1
vote
3 answers
How to make a character and move it with collisisions?
I'm making a 2D game on replit and so far, I'm doing pretty well. My last question is about making the map.
Here's the code for the map:
import pygame, sys
BLUE = (0, 0, 255)
SAND = (194, 176, 128)
GRASS = (124, 252, 0)
FOREST = (0, 100,…

roarg
- 27
- 5
1
vote
1 answer
What is the "proper" way to get rid of gravity from accelerometer data?
The "gyro" array and accelwithg array are both the returned data from the hardware, respectevely for accelerometer and gyrometer.
My thought process was as follows:
Calculate time difference between each frame
add up all the angles
Rotation matrix…
1
vote
1 answer
p5.js: make an animated spiral with line instead of ellipse?
I'm trying to animate a spiral using a line, but can only seem to get it to work using ellipses.
Does anyone know how to replace the ellipse() with line()?
here is the code:
var angle = 0.0;
var offset = 60;
var scalar = 10;
var speed =…

Emma Culhane
- 27
- 5
1
vote
1 answer
How to get Action when motion move event is not more in ANDROID?
I am Rotating image on MotionEvent. and also image is getting shrink when i rotate it. i want to show Alert Dialog when move event is not more..
here i post my code...
private ProgressBar distanceBar;
private Button back;
private ImageView…

Piyush
- 2,589
- 6
- 38
- 77
1
vote
0 answers
Encoder position overflow in codesys
We are using LMC078 motion controller from Schneider electric in our project to control 12 motors simultaneously. Softmotion encoder will act as master for all the axis.
We are using soMachine software which uses codesys for programming the…

jerryvdk
- 11
- 4
1
vote
2 answers
Ionic capacitor Motion plugin - listeners not triggering
I have an ionic capacitor android app and I would like to record orientation and acceleration of the device, but after adding event listeners, they are not triggering.
Code:
import { Motion } from '@capacitor/motion';
export default class…

Pat
- 71
- 1
- 5
1
vote
1 answer
Matplotlib.odeint giving wrong solution for simple formula of acc = Gm/r**2
I made a program to calculate the motion of any object (in this case moon) by earth's pull, with zero initial velocity, the moon should just oscillate in a straight line back and forth the earth until it stops at earth exactly right on top of the…

Mohd. Farhan Hassan
- 27
- 2
1
vote
0 answers
Introduction to Emacs Lisp function example confusion
So I'm reading through the Emacs Lisp intro, and I come across this function used as an example for save-excursion:
(message "We are %d characters into this buffer."
(- (point)
(save-excursion
…

Solaire
- 21
- 7
1
vote
1 answer
H264 motion vectors when height or width cannot be divided by 4
It is my understanding that h264 motion vectors represent an area of 4x4 or 16x16 pixels. What happens if an image height or width is not divisible by 4? Is this even allowed?

user1315621
- 3,044
- 9
- 42
- 86
1
vote
1 answer
In Choregraphe in robot view for Nao the motion widget doesn't show up. Instead the 'inspector' box appears. How can I find the motion widget?
When I try to click on parts of Nao's body in robot view the motion widget doesn't show up instead the 'inspector' box appears . How can I find the motion widget window?
Please help me

Adrian Pantea
- 11
- 2
1
vote
0 answers
Why is the Motion Blur post processing effect not working in Unity (mac)?
I just can't seem to get motion blur to work in my Unity game. I have added the Post Processing package, created a custom layer for it, added a Post Process Layer to my camera, a Post Process Volume object to my scene and I've linked them together…

Ash
- 9,064
- 3
- 48
- 59
1
vote
1 answer
Securing a Raspberry Pi Motion Video Streaming with SSL/HTTPS
Is it possible to create a secure connection using motion? I have embedded my motion stream on an HTML page using Apache, but it will not display as it is an insecure img on a secure page encrypted with letsencrypt and certbot. I can view the motion…

Eliott
- 11
- 3