Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c++]

C++ is a compiled general-purpose programming language that adds object-oriented features and other enhancements to the C language. It is popular for both embedded (including robotics) and PC software development.

0
votes
0answers
18 views

LQR Controller in Raspberry Pi C++ [closed]

I am a newbie in Raspberry Pi and I don't know anything about Ubuntu, or ARM, etc. so please be patient in answering me and please, please guide me step by step. But I know how to run codes in C++ ...
0
votes
0answers
19 views

Computer Vision - Centering camera on point once it enters screen

I am working on a computer vision project in C++ and there is a part where I have to move the camera once a certain point is detected until the camera is centered on that point. The dimension of the ...
1
vote
0answers
16 views

Detecting and counting the number of junctions

So I am making a robot which is to follow a line. The field has both +(junctions) as well(by the intersection of two lights). I am yet to figure out what exactly is the best way to track the number of ...
1
vote
1answer
65 views

Multiple View Triangulation method used by COLMAP

I'm looking at how COLMAP does multi-view triangulation. I can't work out what this function is doing. I can't find any formulas which look similar. The input "proj_matricies" come from pose data, the ...
1
vote
2answers
31 views

ROS: Sensor data via USB

Im working on a project and i want to use a sensor. I can plug in the sensor via usb. I do not need any driver for the sensor. My task is to have an access to the sensor data. I have followed the ...
2
votes
1answer
101 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 ...
0
votes
2answers
56 views

using motor controllers with Raspberry instead of Arduno. Is it just me or is everyone ok with bad sofftware support?

I bought a Roboclaw controller. Since then, have looked around for other. The software support seems to be the same (to me:sad) state. They all seem to provide Arduino code examples, however, then I ...
2
votes
0answers
62 views

How to properly initialize every new pose in a Visual SLAM algorithm (namely DSO)?

My question is a bit specific, because it is linked to a certain algorithm. Therefore I didn't find any other solutions on how to go about this problem. If you could refer me to research papers, ...
0
votes
1answer
54 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 ...
0
votes
0answers
41 views

Constructing a mesh in Gazebo

I am pretty new to Gazebo and i'm trying to construct a mesh at runtime based on a CGAL surface mesh. I know that the mesh only contains triangles. The code: ...
5
votes
1answer
97 views

Robot positioning problem

The problem i am facing is to try and calculate the x and y position of a robot with dead reckoning. Reading from the encoders and getting proper rotations of the wheels of my robot works. The robot ...
1
vote
0answers
380 views

How to make a line following algortihm for an A.R Drone 2.0? [closed]

I am trying to develop a line following algorithm where a drone will detect a bounding box and follow what is inside the bounding box. I am filtering all the colors to only see the color white. Once ...
0
votes
0answers
29 views

How Can I Connect Phantom Omni Haptic with C++

I have to determine the position of the Phantom Omni's gimbal in real time. Is it possible to know which of its limb is moved during its movement and how? This has to be in C++
3
votes
2answers
90 views

Computationally efficient way to represent joint C space for a multi-robot RRT

I am working on writing code for a coordinated multi-robot rapidly exploring random tree (RRT) based planner, which would naturally involve a lot of sampling, nearest neighbor searching and 'radius' ...
8
votes
3answers
5k views

How to setup CLion for ROS?

How can I setup the C++ IDE CLion to display documentation and auto completion correctly when working with ROS?
3
votes
2answers
196 views

Kalman filter prediction questions [closed]

I have a dataset where measurements were taken at 1 Hz, and I am trying to use a Kalman filter to add predicted samples in between the measurements, so that my output is at 10 Hz. I have it ...
1
vote
1answer
712 views

how to move my robot to the assigned coordinates

I am working on an ground surveillance robot using an Arduino mega for programming, am using components like the HMC5883L compass, Adafruit GPS for assigning of coordinates (latitude and longitude) ...
1
vote
1answer
69 views

Robot Graphical Representation in Real Time

I'm working with a robot intended to be placed in a tele-echography environment. To control the robot I'm using a 6D space mouse that control each degree of freedom of the robot. However, since the ...
1
vote
2answers
237 views

Can i use a predictive kalman filter to 'increase' my sample rate?

I have a slam algorithm that outputs at around 30Hz, an implementation of ORBSLAM2. https://github.com/raulmur/ORB_SLAM2 I am reading this into a renderer that expects 60+ Hz. Because my sample ...
1
vote
0answers
143 views

Scaling monocular SLAM with another source?

I have implemented a stable monocular slam tracking system, based on ORBSLAM2. I am trying to find a way to add real-world distance/scale to this. At the same time, I am running a (less stable) ...
5
votes
5answers
3k views

Programming Inverse Kinematics in C++

I want to write my own kinematics library for my project in C++. I do understand that there are a handful of libraries like RL (Robotics Library) and ROS with inverse kinematics solvers. But for my ...
0
votes
1answer
172 views

Save Depth Map Video

I have recently purchased an Orbbec Astra camera, which uses the same technology and produces the same style depth map as a Microsoft Kinect. What would be the correct file format to save the depth ...
0
votes
3answers
881 views

Is there any C++ library I could use to program a robotic manipulator involving forward and inverse kinematics?

I came across robotics library (RL), but quite unclear about its real purpose. Is it a FK/IK solver library or simply an graphical simulator?. RL has poor documentation, so its not clear how to use it....
0
votes
1answer
168 views

Combine individually working cartesian coordinates

I am trying to control a Dobot arm. The arm moves with angles whereas I need to work with cartesian coordinates. From inverse kinematics equations and polar coordinates I have implemented x,y and z ...
0
votes
1answer
561 views

CompressedImage to an Image in a node

Update Hey I have the following subscriber on Nvidia TX1 board running on an agricultural robot. we have the following issue with subscribing to Sensor_msgs::Compressed: ...
2
votes
1answer
859 views

Stereo Vision Using Compute Module: Pi camera synchronization

Good day, I am currently working on an obstacle avoiding UAV using stereo vision to obtain depth maps. I noticed that the quadcopter would sometimes not steer to the correct direction. I am using ...
2
votes
1answer
194 views

How to split tasks between interrupts and the main loop on a bare metal controller?

I'm working on a robotics project where I have 3 services running. I have my sensor DAQ, my logic ISR (motor controller at 20kHz) and my EtherCAT slave controller. DAQ and EtherCAT run in the idle ...
1
vote
1answer
328 views

Change Message Interval ArduPilot

I am using Mavlink protocol (in c++) to communicate with the ArduPilotMega, I am able to read messages such as ATTITUDE for example. I am currently getting only 2Hz (message rate) and I would like to ...
0
votes
1answer
159 views

VFH+ (Vector Field Histogram+) : Is it possible to choose a candidate sector without a set goal point?

Good day I am currently implementing the VFH algorithm. Is it possible to configure the algorithm such that a reactionary motion is generated at the presence of an obstacle? I have been able to ...
0
votes
2answers
76 views

TCP Communication with PCDuino

I'm working on a robot that is controlled by an xbox controller connected to a windows computer and commands are sent to a pcduino through a tcp connection. I have it working by sending a string of 1'...
1
vote
1answer
100 views

How do I compute the inverse kinematics given a desired transformation matrix?

I am at the moment trying to implement an inverse kinematics function which function is to take a desired transformation matrix, and the current transformation matrix, and compute the Q states that is ...
4
votes
1answer
589 views

Implementation of inverse kinematics solution in c++

I am having some issue with implementing a least square solution of the inverse kinematics problem. The q configuration I get are rather large, or makes no sense, so I was hoping someone here could ...
1
vote
2answers
261 views

Implementing an analytic version of an inverse kinematic

People have recommended me implement an analytic version of inverse Jacobian solver, such that I won't be forced only the least square solution, but would have an local area of solution near to the ...
0
votes
1answer
394 views

Quadcopter program execution time optimization using Raspberry Pi by increasing i2c baudrate

Is it possible to speed up execution time of a c++ program in raspberry pi solely by increasing the i2c baudrate and increasing the sampling frequency of the sensors? I have the issue of sudden ...
2
votes
1answer
93 views

inverse kinematics osciliations..

I am the moment having some issues with an Jacobian going towards a singularity (i think)as some of its values becomes close to zero, and my robot oscillates, and therefore thought that some form of ...
-1
votes
2answers
489 views

Does C have advantages over C++ in robotics? [closed]

I want to build robots, and right now I aim to work with Arduino boards I know that they are compatible with c and c++, so was wondering which language is better for robotics in general? I know how ...
2
votes
2answers
642 views

Is there a simpler way than ROS for 5 DOF Dynamixel arm control

I will have a 5 or 6 DOF arm build with Dynamixel or HerculeX smart servos. I need to move the gripper along Cartesian trajectory, which I will calculate in my C++ application. I looked at ROS, but ...
-1
votes
1answer
108 views

Can someone explaine to me this code? [closed]

static void set_default_param(DPMTTICParam& param) { param.overlap = 0.4; param.threshold = -0.5; param.lambda = 10; param.num_cells = 8; }
0
votes
2answers
87 views

How can I control fast real time sensor (250Hz) with slow system display(60Hz)

We do some experiments of real time representation of sensor position on TV. In this experiments, we used sensors for collect real time position in 3D at 250Hz and TV for Display the sensor position ...
3
votes
1answer
5k views

Create a simple C++ client Application to control KUKA's Robot-arm LBR iiwa via FRI

Until now I have been programming the robot using Java on KUKA's IDE "KUKA Sunrise.Workbench", what I want to do is control the robot arm via my C++.Net application (I would use a camera or Kinect to ...
3
votes
1answer
450 views

How to transfer signed integers with libusb?

Folks at programmers stack exchange asked me ask here: I want to communicate with an arduino and sent integers it. I code this program in C++. I initialy used bulk_transfer(), but it sends only char ...
-1
votes
1answer
499 views

C++ and Create 2

I am trying to use C++ to talk to the Create 2 robot. Does anyone have basic code to write/read from the Create 2 using C++ or C? I am having trouble with converting Create 2 commands (like ...
1
vote
0answers
3k views

accelerate a stepper using arduino AccelStepper starting with a pre-defined speed

I've read the AccelStepper documentation on airspayce.com and it seems to be not possible to accelerate a stepper starting with a speed greater 0. Acceleration always starts from speed=0, I tried it ...
1
vote
1answer
127 views

Easiest way to submit a longer non standard character string via MAVLink

I want to submit my gains for the PID regulator via MAVLink. Unfortunately, I am not very used to MAVLink and there are several functions which may be used for that purpose (I think). My string is ...
1
vote
1answer
1k views

How do I control a servo using a beaglebone black running ubuntu

I have a BeagleBoneBlack and would like to use it to control a servo for my robot. I'm mostly programming in ros and as such am looking preferably for a c++ solution. Is there an easy way of ...
2
votes
2answers
1k views

ros send message on startup doesn't seem to work

I have the following code: ...
1
vote
1answer
6k views

Connecting an Arduino uno with a beaglebone black over USB

I have an arduino uno and a BeagleBone black and would like them to talk with eachother. Both the beagleBone and the arduino have their own 5V power supplies so no need for power to be transferred ...
2
votes
3answers
2k views

redundant arm path planning and trajectory following

I have a 7dof robotic arm and a set of end effector trajectories in cartesian space I need it to follow. How do I deal with the redundancy in the arm when planning to follow these trajectories both ...
0
votes
2answers
737 views

qt ros tutorial issue

I am working on a robotic application under R.O.S. groovy Galapagos. I would like to make a tutorial about how create a template app with catkin_create_qt_pkg. I'm unable to call the script ...
2
votes
3answers
1k views

Controlling Robots Through Serial

I recently have been working on a little project. Unfortunately, I've ran into a bit of a road block with controlling servos using serial commands. The servos do appear to move when i put in any ...