New answers tagged ros
1
vote
How to resolve singularity in six arm robot
My suggestion is to add constraints to the motion planner (see here how to set them in MoveIt -please be sure to read the tutorial related to your ROS/ROS2 distribution!-), rather than editing the ...
0
votes
How can you start gazebo with a non-0 simulated clock time?
Generally speaking, best practice would be to set the use_sim_time parameter in any ROS nodes that rely on timing in the simulation. Making sure everything is ...
0
votes
C++ can not build simple test program after update (Ubuntu 22.04/ROS 2 Rolling)
Have you tried deleting the "build" and "install" folders in your workspace (to remove any pre-existing cmake-generated files), and then running colcon again in this newly cleaned ...
0
votes
Issue with Rostopic Name Length Affecting Node Communication
This may be the same bug I reported years ago which is triggered when using a UDP connection. The ros_comm code has a buffer overflow, and I provided a patch to fix it.
https://github.com/ros/ros_comm/...
0
votes
How can the ROS 2 TurtleSim turtle icon be changed?
To be honest I haven't tried to change the images of turtlesim, but you can try to build the ROS tutorials package from source (ros_tutorials) add add your custom image to ...
0
votes
Is it possible to create a catkin package to provide precompiled libraries?
The answer above and other related resources helped me find out the following solution. My main problem was that the libraries wouldn't be seen in the devel space, which I brute-force solved by ...
0
votes
Accepted
Custom ROS Service Cannot be Imported
Welcome to Robotics Stack Exchange!
If my_ros_pkg and MyService.srv are the name of the ROS package and name of the service file,...
0
votes
Does ROS 1 have compatibility with any Renesas Hardware? Or is it just available for ROS-micro (ROS 2)?
micro-ROS for ROS 2 is the successor to rosserial for ROS 1. Although the tutorials here focus on Arduino, plenty of other devices are supported, and you can always ...
0
votes
control computeCartesianPath's trajectory.points.size
It is not required that you call computeCartesianPath(). This function linearly interpolates points between the waypoints you pass into it. If the incoming ...
2
votes
Accepted
In ROS, is it possible to do dynamic reconfigure with "nested" parameters?
Yes, multiple sets of dynamic_reconfigure parameters are supported for a single ros node. You need to create a Server for each path that has this kind of parameter. You can reuse a .cfg class name for ...
2
votes
Accepted
How to add parameters to a node via a yaml file using a python launch file in ROS2?
So answering my own question,
To make the parameters available to the node, they first need to be declared inside the node.
Hence, the node should be something like:
...
0
votes
Debugging ROS nodes in c++
This video shows how to use VS Code ROS extension for debugging. https://youtu.be/uqqHgYsskJI
Here is a guide on debugging in VS Code:
https://github.com/ms-iot/vscode-ros/blob/master/doc/debug-...
2
votes
waitForTransform kills node after changing static tf
I found the problem!
A prefix was missing in the StaticTransformBroadcaster. The frame_id should be just footprint (the masters ...
0
votes
Trajectory waypoints are not exactly the same as joint positions. How to find the closest waypoint?
If the planned path could reach the same position twice, there is no unique "minimum distance" you could use to get the path parameter, whatever distance-function you will choose.
In this ...
1
vote
node crashes when subscribe to /image_raw topic
I would suspect that the problem is not with your posted code - but rather the driver itself.
The driver is likely implemented as a lazy publisher - this means that it does not interact with the ...
0
votes
Could I create multi dynamic_reconfigure in one package in one CMakeList?
Provide all the cfg files in a list instead of separate generate_dynamic_reconfigure_options() lines. Change
...
1
vote
publish saved trajectory one by one
I think the ros::Rate rate(nextTime) should be a duration instead: ros::Duration(nextTime).sleep()
I am assuming that ...
0
votes
Rviz Amcl spreading over time when stayin still
I suspect the problem is that your launch files rely on the obsolete tf_prefix feature. This feature was deprecated long ago, and I believe it is not reliably ...
0
votes
Accepted
ROS Noetic. How can I manage origin of coordinates for each STL model in Rviz?
So, I found an answer:
There is option in SolidWorks - add origin of coordinate.
You can choose initial point and axises.
And as you save file as .stl,
In options, at the bottom of window, you can ...
0
votes
How to get ROS_MASTER_URI so that other devices can also connect to it?
On Linux:
set Env variable
export ROS_MASTER_URI=IP_ADDRESS
get Env variable
echo ROS_MASTER_URI
On Windows:
set Env variable ...
1
vote
Accepted
IMU sensor Vectornav VN100 driver doesn't post any INS messages
Found a solution for my particular problem.
I just commented "if" condition for the INS publishing part of the C++ script, see the screenshot below.
*talking about ROS driver for VectorNAV
...
0
votes
ROS Noetic. How can I manage origin of coordinates for each STL model in Rviz?
In Solidworks, look for the STL output option "Do not translate output STL data to positive space."
https://help.solidworks.com/2011/english/SolidWorks/sldworks/legacyhelp/sldworks/impexp/...
0
votes
ROS node reading from bag not exiting correctly
It sounds like you'd like to avoid the while(ros::ok()) pattern because you're reading from a bag file, so rather than running in a loop you plan to step through ...
0
votes
Accepted
How to deserialize ROS messages from Bag to ROS defined types in C++?
I think that you're looking for the instantiate method on the rosbag MessageInstance
There's a very minimal example here
...
0
votes
/apriltag_detector node crashes after viewing an apriltag. Receive openCV error
I got the same error, I'm using this repo: https://github.com/AprilRobotics/apriltag_ros.git
When I'm trying to run some of the tutotials of ros wiki(bundle calibration) from ros tutorials http://wiki....
0
votes
Formatting rosservice response
In general, it is preferred to create a new Message type, in your case something like Area.msg, and in your Service return a list of Areas.
Then, in your client, ...
0
votes
Rosserial missing subscribed messages
Just as test, I would move the publisher creation out of 'talker'. The creation of the publisher requires that other nodes be made aware of it's existance and if you create it, publish on it, and it ...
2
votes
bloom-release fails to open a PR on rosdistro with token error related to workflow scope
No you should not add more scope to your token!
Bloom opens this pull request using your personal fork of rosdistro
https://github.com/$USER/rosdistro.git
It will ...
0
votes
osrf/ros docker images don't contain Gazebo packages
The variants for ROS 2 are defined in REP 2001
- desktop_full:
extends: [desktop]
packages: [perception, simulation, ros_ign_gazebo_demos]
I think that ...
1
vote
Accepted
Controlling Arduino device from ROS node
You can use rosserial for sending commands over the Serial port to your Arduino.
|0000|0000|0000|0000|0000| as |ID|Motor_1|Motor_2|Motor_3|Motor_4|
This is called a dataframe. If you do end up using ...
1
vote
Execute move_group.stop() more smoothly
The goal of MoveIt's stop() function is to stop the arm, which may be sudden. As described in this related question, what you're looking to do here isn't supported ...
1
vote
Accepted
rosdep key for SDL2 not working
You found the right entry. However you should be referencing the parent key, not the platform specific package.
So sdl2 and then on your platform rosdep will ...
1
vote
joints not showing up in rviz
As already mentioned, it seems that your are missing the tf2 tree, which rviz needs to render your robot.
You'll get this by adding robot_state_publisher to your launch file.
A tutorial of the ...
0
votes
How to send a 2D Nav goal without the button "2D Nav Goal" in RVIZ?
I tested in my case, when I set 2d nav goal in rviz, the message topic name is:
/move_base_simple/goal
and the message type is:
...
0
votes
How can I calculate the static transform between 2 coordinate frames?
Welcome to Robotics Stack Exchange!
How can I calculate the static transform between 2 coordinate frames?
Using terminal
Please use tf_echo utility from tf ...
0
votes
cannot launch node of type [gmapping/slam_gmapping]: Cannot locate node of type [slam_gmapping] in package [gmapping]
i solved it !!!
I've noticed that the gmapping package that i git cloned, from which then i would try to useroslaunch gmapping slam_gmappin_pr2.launch it wasn't ...
0
votes
cannot launch node of type [gmapping/slam_gmapping]: Cannot locate node of type [slam_gmapping] in package [gmapping]
Have you tried source /opt/ros/noetic/setup.bash on same terminal where you are launching your gmapping launch file because it's saying it can't file the pkg ...
1
vote
Can I get the current git commit in the ROS buildfarm binary packaging step?
By the time your Debian binary is being built, the git history is long gone:
When the PR build runs, it is simply checking out your repository, building your code, and running the tests. Therefore, ...
1
vote
Generating Core File on Segmentation Fault
This may not be exactly what you're looking for - but the Nav2 project has some documentation on Getting Backtraces in ROS 2 that might be helpful.
1
vote
catkin build fails because PythonInterp cannot be found
"FindPythonInterp.cmake" has been deprecated for a long time, and is removed in more recent cmake versions:
https://cmake.org/cmake/help/v3.16/module/FindPythonInterp.html
The page ...
0
votes
Gazebo Ignition how to bridge SerializedStepMap
Looks like I managed to solve the issue with @Bi0T1N help. To anyone interested in my setup:
I have .sdf file with my world (walls and robot)
I'm running Gazebo simulation
Gazebo publishes some ...
0
votes
How to calculate error for inverse kinematics?
First, you don't seem to correctly define pose, homogeneous transformation matrices etc.
A 'pose' is defined by a position and an orientation.
Position is typically represented by [x,y,z]' coordinates ...
1
vote
Accepted
Gazebo Ignition how to bridge SerializedStepMap
The JointStatePublisher plugin publishes a gz.msgs.Model (might be the SerializedStepMap on ...
0
votes
ModuleNotFoundError: No module named 'turtlesim.msg'; 'turtlesim' is not a package
You probably failed to setup the ROS environment in that terminal:
source /opt/ros/noetic/setup.bash
1
vote
An error occured in MOVEIT: ABORTED: START_STATE_IN_COLLISION
In your log there is this line:
...
0
votes
Accepted
AttributeError: 'list' object has no attribute 'header'
joint_state should be a sensor_msgs/JointState msg not a list. If you search for "header" in the error msg you can see that it is trying to serialize the header in the joint state msg which ...
0
votes
IMU sensor Vectornav VN100 driver doesn't post any INS messages
Have you checked using the control center sw if the VN is actually publishing INS messages? Then you should also check which ports are selected for output and the rate limits. When having everything ...
Top 50 recent answers are included
Related Tags
ros × 20908ros-kinetic × 1657
navigation × 1392
ros-melodic × 1025
gazebo × 839
ros2 × 823
rviz × 713
moveit × 528
ros-indigo × 524
transform × 520
catkin × 510
kinect × 421
turtlebot × 411
python × 405
roslaunch × 400
c++ × 383
ubuntu × 353
ros-hydro × 336
ros-fuerte × 302
urdf × 282
ros-groovy × 275
publisher × 274
slam × 262
tf2 × 255
cmake × 240