Questions tagged [diff-drive-controller]
diff_drive_controller is a controller plugin for the ros2_control framework
58 questions
1
vote
0
answers
34
views
NAV2 + MPPI will not switch direction at waypoint
I am working on a larger garden robot and need it to go navigateThroughPoses. One of the special situations is where the poses are in a path where the robot has to switch direction 180° and go ...
0
votes
1
answer
34
views
Wheels always spinning in the same direction with ros2_control and DiffDriveArduino
I have reached the Articulated Robotics tutorial on ros2_control for real robots (link), but, when I test it, regardless of which teleop_twist_keyboard key I press, all the wheels spin in the same ...
0
votes
2
answers
85
views
My mobile robot doesn't move in any direction
I've created a mobile robot and applied the differential drive controllers to its wheels. However, while the wheels actually moves (the rotation is on) the robot stays still. How can I fix such ...
0
votes
1
answer
40
views
No /odom and /cmd_vel topics with diff_drive plugin
I am new to ROS2 and am currently working on getting a basic simulation going using Gazebo/ROS2 Humble. My robot's urdf works as expected on rviz when I use joint state publisher to control the wheels....
0
votes
0
answers
102
views
Ros_control not activating diff drive controller
I created a custom controller, and when launched the logs at the terminal where gazebo is launched show that it's configured and activated. When i try using the diff_drive_controller, the ros_control ...
0
votes
0
answers
19
views
slow wheel novement issue with nav2 and slam_toolbox in Gazebo
i'm currently working with nav2 and slam_toolbox in gazebo for autonomous driving. while the setup seems to be functioning correctly overall, i'm encountering an issue where the wheels are turning ...
0
votes
2
answers
43
views
Pid controller with encoder feedback for tank steering
I'm struggling to find a solution for my problem. I would like to write a simple PID controller in C/C++ that accepts a speed in RPM and controls the motors by receiving the feedback from the encoders....
0
votes
0
answers
16
views
Optimal Odometry and Data Fusion Frequencies for Differential Drive Robot
I am in charge of developing control code for a commercial-level differential drive robot using industrial-grade motors. I have a few questions related to optimal and standard frequencies for wheel ...
0
votes
1
answer
45
views
Hardware Component stops writing after ~25 seconds. Also initiates with extremely high values
Whenever I start my motor with my own hardware component it starts writing extremely high values that I haven't set. (See log)
After that is also somehow stops writing after approximately 25 seconds. ...
0
votes
0
answers
37
views
Wheels Not Moving in Open-Loop Configuration with ROS2 Control and Teleop
[1]I'm relatively new to ROS and have been working on a robot project. I am currently using ROS2 Humble on Ubuntu 22.04. I've been following the tutorial series from Articulated Robotics, particularly ...
1
vote
2
answers
146
views
ros2_control publishing NaN to /diff_controller/odom
Im trying to launch my Gazebo simulation of my 4-wheeled robot using the following launch file, but when I inspect everything, I see that the odometry is not being calculated correctly. What is going ...
0
votes
1
answer
259
views
Failed loading controller
When I try to launch the real_robot.launch.py in my PC, the controllers joint_state_broadcaster and my custom controller ...
-1
votes
2
answers
134
views
I work with Humble ROS and I want to use ros_control
I installed all packages I need and write my controll.xacro file and my_controller.yaml file and write launch file correctly and ...
0
votes
0
answers
8
views
Difference between libgazebo_ros2_control.so and libgazebo_ros_diif_drive.so plugin [duplicate]
What is difference between libgazebo_ros2_control.so and libgazebo_ros_diff_drive.so plugin?
How this two plugins are used to control the robot?
0
votes
0
answers
13
views
Robot is not moving to Goal location. Moving in straight direction only
I have simulated the robot with libgazebo_ros_diff_drive.so plugin. I have written python script to move robot to goal location. But When I am running this go_to_goal.py, the robot is moving in ...
0
votes
1
answer
75
views
ROS2_Control question
Can anyone clarify the units of diff_drive_controller, Command interfaces in velocity are in rad/sec ? and state interfaces for encoders are rotations ? and velocity is again rad/sec ?
Also is there a ...
0
votes
1
answer
258
views
Is cmd_vel output from Ros2_control a good way to control motors in a diff-drive robot?
Ros2_Control allows controlling motors through low-level (fast) interfaces. But these can be tricky to set up. Does the cmd_vel topic from the controller originate from the same place in code? I mean, ...
0
votes
1
answer
149
views
robot moving backwards when the 2d_Nav_goal set behind the robot
my 4wheel_bot is moving backwards when i set the goal behind the robot in rviz, but it reaches the goal tho. I did not notice this kinda behavior in any robot, normally it rotates and pursuit the goal ...
0
votes
0
answers
39
views
ACADO Toolkit MPC based robot controller weird behaviour around obstacles
I have been strugling with this issue for a long time now, any help would be appreciated.
So, I have a robot simulation running in Gazebo. I have implemented a robot controller that follows a direct ...
0
votes
2
answers
98
views
Robot not moving to the goal - diff_drive_controller 4wheel bot
I am trying to implement the navigation and reaching the goal by the 4_wheel_bot, you can find the files in this github page. I tried the diff_drive_controller by ...
0
votes
2
answers
75
views
How to handle local cost map when robot is carrying a shelf in ros2 navigation2?
There is no problem if the robot is not carrying a shelf when using navigation2 with a local cost map with size of (4m x 4m). But when robot is carrying a shelf (see the picture below), if I still use ...
0
votes
1
answer
159
views
ROS2 controller needs motor encoder values
I am wanting to link to this encoder code with another ROS2 C++ program, in the ROS2_Controller group. I believe I can include the header file from this encoder code in compilation and use a public ...
0
votes
1
answer
258
views
Configure diff_drive_controller in open loop on a real robot
I would like to use the diff_drive_controller package for my real robot. This robot doesn't have any wheel encoders so I configured the controller as open loop. ...
0
votes
1
answer
216
views
ros2_control want to set parameter from cli, serial port
I've successfully re-written a HardwareInterface for my diff_drive robot. So I'm now able to communicate with my real robot with ros2_control. (https://github.com/PaddyCube/hoverboard-driver/tree/...
0
votes
1
answer
84
views
diff_drive_controller in ROS2 on Jackal platform causing jittered controls
I am currently battling with the ClearPath Jackal robot trying to upgrade it. I have struggled for weeks trying to understand why using a PS4 controller gives jittery values. Basically the jackal will ...
0
votes
1
answer
649
views
ros2_control diff_drive_controller PID?
I followed ros2_control diff_drive_example https://github.com/ros-controls/ros2_control_demos/tree/master/example_2 to bring my ROS1 robot to ROS2.
I notice there is a PID controller (pid.cpp and pid....
0
votes
2
answers
140
views
diff_drive changes the wheel's parent link
So this is kind of a wierd issue.
I have a two-wheeled robot with a caster and i'm using diff_drive to test it in gazebo with ros2-galactic.
my tf tree is a little different where my base_link is not ...
0
votes
1
answer
209
views
ros2_control Odometery Data Publication Frequency Discrepancy
I am using ros2_control framework to control the motor wheel of my robot and to publish odometry data. However, I have encountered an unusual issue where the odometry data is being published at only ...
1
vote
1
answer
570
views
Differential Drive Controller 'enable_odom_tf: false' doesn't work
I have 2 wheels diff_drive robot that use diff_drive_controller from ros2_control,so this first work as diff_cont (diff_drive_controller name) publish transform from odom to base_link on /tf.
Now I ...
0
votes
1
answer
177
views
How to define PID in diff_drive_controller
I am trying to understand how diff_drive_controller works by following the documentation: http://wiki.ros.org/diff_drive_controller
1 - I don't understand why the PID parameters are not set ?
2 - If ...
0
votes
1
answer
250
views
Problems with loading and configurating DiffDrive and JointStateBroadcaster controllers
Hi. Sorry for all mistakes, English is not my native language. So I'm launching my gazebo simulation with JointStateBroadcaster and DiffDrive controllers. Gazebo loads without notable errors but then ...
0
votes
1
answer
574
views
Remapping diff drive controller to cmd_vel
Hi!
I'm looking to use nav2 with my current diff drive controller setup. My controller is currently subscribed to the /diff_drive_controller/cmd_vel_unstamped topic, while it appears nav is publishing ...
0
votes
2
answers
553
views
"what(): can't subtract times with different time sources [2 != 1]" error when spawning diff_drive_controller on ros2_control
I'm using ros2_control to control my robot.
After exectue controller_manager, when I spawned "diff_drive_controller" I have this error.
...
0
votes
1
answer
13
views
How to interpret position in JointStateInterface
The context is a robot with 2 drive wheels, using the ros_control diff_drive_controller.
I would like to know if it is well ...
0
votes
1
answer
67
views
diff_drive_controller ignores acceleration limits
Hello community,
I have a real 2-wheeled robot and use diff_drive_controller. I'm able to drive around using teleop. It seems to work so far.
But I'm curious about max_jerk and max_acceleration ...
0
votes
1
answer
110
views
Understanding How Odometry Is Calculated In The Diff_Drive Controller
I apologize that this question has two parts. If it's better to post two questions, then please let me know.
While reading through the source code of the diff_drive_controller.cpp, I am trying to ...
0
votes
1
answer
32
views
wrong diff_drive_controller pose calculation?
Hallo,
I am using diff_drive_controller in my project.
I wrote the hw interface which calculates the distance based on the ticks coming from the left and right wheels. I am sending absolut ticks (...
0
votes
1
answer
65
views
ros2_control - Created node by ControllerInterface gets nodename of controller_manager no matter what (diff_drive_controller)
Hi!
I started to work with ros2_control and want to set it up with a diff_drive_controller. Therefore I wrote an Actuator that implements the handling of my motors.
The issue I now have is that when ...
0
votes
2
answers
178
views
Are there examples of robots using diff_drive_controller in ros2_control?
We are working on the development of a custom differential drive robot using ROS 2 Foxy. Until now, our development was in simulation only and we are now transferring our code to the actual physical ...
0
votes
1
answer
7
views
what are imax and imin in pid
I was trying to use the pid controller of the control toolbox ros package in my hardware interface of diff drive controller. Here when i was studing this api i didn't got what imax and imin means and ...
0
votes
1
answer
98
views
diff drive controller giving wrong odometry data (radius and separation multipliers)
I'm working on a 4WD skid steer robot which uses ros control and the diff drive controller.
If I set my wheel radius multiplier to 1.0, the robot seems to go extremely slow (doesn't seem to be moving ...
0
votes
1
answer
69
views
Diff_drive_controller not subscribing to /cmd_vel
Hi, my team is working on a differential drive robot and trying to decide if the diff_drive_controller is a good fit for our project. We have been borrowing and ...
0
votes
1
answer
17
views
motor oscillates after diff_drive_controller configuration
Hello,
I have configured the canopen_motor_node of my robot to use a DiffDriveController, but once I start publishing angular velocities in the /cmd_vel topic the movement is not smooth, i.e. the ...
0
votes
1
answer
7
views
Is it possible to know diff_drive_controller frequency?
Hi all,
My problem is the following:
I am using TIAGoSimulation in Gazebo to perform some experiments with wheeled mobile robots.
My goal is to have the robot performing autonomously a desired ...
0
votes
1
answer
11
views
Which units does a diff_drive_controller output?
Hi,
I am using Kinetic on Ubuntu 16.04 with a physical robot.
I am writing the code that interfaces the diff_drive_controller to my physical robot's hardware. I understand that the data the ...
0
votes
3
answers
124
views
What are the steps to use diff_drive_controller in a physical robot?
What steps need to be followed to use diff_drive_controller on a physical robot that is using differential drive (including all packages diff_drive_controller needs)...
0
votes
1
answer
50
views
does diff_drive_controller require a hardware interface?
Development Environment:
OS: Ubuntu 18.04
ROS version: Melodic
Robot:
6 wheel rover (3 wheels each side)
TREX Robot Controller: https://www.gotronic.fr/pj-1119.pdf
No encoders, but a built in ...
0
votes
1
answer
14
views
is it necessary to have URDF model for diff_drive_controller
Hello,
I am building a differential drive robot and trying to exploit the power of ros_control by using the diff_drive_controller into my project
I have found that I have to fulfill some hardware ...
0
votes
1
answer
34
views
Help to run diff_drive_controller
I’m trying to launch the diff_drive_controller but I get this message when I run the .launch file.
“Controller Spawner: Waiting for service controller_manager/load_controller”
" Controller ...
0
votes
1
answer
51
views
Gazebo crashes using skid_steer, but works fine with diff_drive
I have a skid steer robot which I'm trying to simulate in Gazebo. In my wheel macro, I have:
...