Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 72 articles
Browse latest View live

Robot state publisher has died error code -7

$
0
0
Hi, recently I upgraded my ODROID XU3 using apt-get and since then I haven't been able to launch robot state publisher which is crucial for my finals project. Whenever I want to launch my launch file, it always died with error code -7 and when I use rosrun for robot state publisher it returned 'Bus error' to the terminal. 1. Is there a quick solution to this? 2. If not, is there an alternative to robot state publisher? I intend to use my robot for gmapping, and I haven't been able to run robot state publisher in a separate machine like my laptop and connect to the ODROID that contains the gmapping, freenect, and differential drive package. It ended up with no mapping data received and the robot model has plenty of errors. 3. Is there an old ROS repository that I can download and replace the one in my ODROID? Really need help real quick, it was stupid of me to update when I had the whole thing worked out, now I'm screwed.

[ROS2] Robot State Publisher publishes empty robot_description

$
0
0
Using Robot State Publisher I noticed that in RVIZ2 the "Robot Model" panel is not updated subscribing to the `/robot_description` topic, but it works correctly choosing `file` as "Description Source". Investigating further I noticed that indeed the `/robot_description` topic is available in the topic list, but nothing is published.

revolute joint defined in URDF is not moving

$
0
0
Hi, I am on Ubuntu 16.04 using ROS Kinetic. I created a package in my catkin workspace to visualize and play with two links using the joint_state_publisher sliders. I added roscpp, rospy, joint_state_publisher, and robot_state_publisher as dependencies. I sourced the setup.bash in my catkin workspace accordingly. I have a revolute joint defined in my urdf for two links. It loads well in rviz. However, I get a warning [WARN] [1540905885.947795]: joint1 is not fixed, nor continuous, but limits are not specified! [ERROR] [1540905885.987862600]: Robot semantic description not found. Did you forget to define or remap '/robot_description_semantic'? The slider knob for the joint_state_publisher GUI bar is also not loaded. I hope someone could see if I miss a step or add unnecessary dependencies to my package. My URDF is as follows. I also tried using continuous joint and commented the limit out. The slider loads but playing with the value would not move link1:

how to define urdf content when robot has rack-gear frame?

$
0
0
I try to make a robot with dynamixel and some kinds of frame which i made. this robot is some special because I use rack-gear frame and pinion gear in my robot. Like this one : ![rack gear](/upfiles/15433299129428392.jpg) I want to use robot_state_publisher and It use kdl_paser using urdf. My problem is I don't know How I make urdf file. normally, robot actuators are connect directly using joint or frame. and I already did urdf tutorial, and make some robot arms like open maniulator. but if world base have rack gear and link1 moves on rack gear, I don't know to define urdf file. Could I get a solution about this problem? or get a tutorial or insight?

Error using roslaunch while calling a world.launch file

$
0
0
I have created a robot with 25 links i.e. one chassis and 8 legs where each leg has three links and 3 joints. when I tried to use `roslaunch spider_gazebo spider_world.launch`, I am having the following errors: ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: can't locate node [state_publisher] in package [robot_state_publisher] Error [parser_urdf.cc:3474] Unable to call parseURDF on robot model Error [parser.cc:341] parse as old deprecated model file failed. These are the node created that i found out after running rosnode list function, gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) rob_State_publisher (robot_state_publisher/state_publisher) urdf_spawner (gazebo_ros/spawn_model) /spider/ controller_spawnner (controller_manager/spawner) This error after searching on the internet for many days, I thought it was coz of some function I might have used in my xacro file but I could not find any mistake in the xacro file. Can anyone please shed some light about what might cause this parse error. I am usiing ros kinetic and gazebo 7.14. Also here is the sample code for 1 link and a joint which is almost same for every link with just varying name: Also, I have added transmission elements to all the joints and have also included `gazebo_ros_contro` plugin.

rosrun: unable to locate the node robot_state_publisher

$
0
0
The exact error I am having is ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: can't locate node [state_publisher] in package [robot_state_publisher] I have cloned the `robot_state_publisher` from ros wiki and already had done `rosmake`. I have also sourced the terminal to devel before using `rosrun` aswell as exported all the reqaquired core packages and python path to the terminal before trying to run the `robot_state_publisher`. here is the my CmakeList.txt file, cmake_minimum_required(VERSION 2.8) project(robot_state_publisher) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra") find_package(orocos_kdl REQUIRED) find_package(catkin REQUIRED COMPONENTS roscpp rosconsole rostime tf tf2_ros tf2_kdl kdl_parser ) find_package(Eigen3 REQUIRED) find_package(urdfdom_headers REQUIRED) catkin_package( LIBRARIES ${PROJECT_NAME}_solver INCLUDE_DIRS include DEPENDS roscpp rosconsole rostime tf2_ros tf2_kdl kdl_parser orocos_kdl urdfdom_headers ) include_directories(SYSTEM ${EIGEN3_INCLUDE_DIRS}) include_directories(include ${catkin_INCLUDE_DIRS} ${orocos_kdl_INCLUDE_DIRS} ${urdfdom_headers_INCLUDE_DIRS}) link_directories(${orocos_kdl_LIBRARY_DIRS}) add_library(${PROJECT_NAME}_solver src/robot_state_publisher.cpp src/treefksolverposfull_recursive.cpp ) target_link_libraries(${PROJECT_NAME}_solver ${catkin_LIBRARIES} ${orocos_kdl_LIBRARIES}) add_library(joint_state_listener src/joint_state_listener.cpp) target_link_libraries(joint_state_listener ${PROJECT_NAME}_solver ${orocos_kdl_LIBRARIES}) add_executable(${PROJECT_NAME} src/joint_state_listener.cpp) target_link_libraries(${PROJECT_NAME} ${PROJECT_NAME}_solver ${orocos_kdl_LIBRARIES}) # compile the same executable using the old name as well add_executable(state_publisher src/joint_state_listener.cpp) target_link_libraries(state_publisher ${PROJECT_NAME}_solver ${orocos_kdl_LIBRARIES}) Can you please help me solve this problem, I am trying to run a robot I have designed using xacro on gazebo and control it with ros. I have already installed `ros_control` and `ros_gazebo` packages. Thank you advance,

Can anyone help me solve the error related to robot_description on parameter server ?

$
0
0
The error exactly is [ERROR] [1546860953.191408064]: Could not find parameter robot_description on parameter server [rob_st_pub-6] process has died [pid 2696, exit code 255, cmd /opt/ros/kinetic/lib/robot_state_publisher/robot_state_publisher robot_description:=spider_robot_description /joint_states:=/spider_joint_states __name:=rob_st_pub __log:=/home/microbot/.ros/log/63188c6c-1270-11e9-929e-2c6e85b13edd/rob_st_pub-6.log]. log file: /home/microbot/.ros/log/63188c6c-1270-11e9-929e-2c6e85b13edd/rob_st_pub-6*.log I am beginner, from what I have understood, I believe the error is caused because robot_state_publisher node can not fetch the robot_description in order to work with. But when I checked the parameter list using command I could see the robot_description parameter in the list and also I could see the xml file created from xacro when I checked with command. Now I am unsure about the reason behind this error. Here I am also attaching my control launch file, Please help me find the reason behind this error. Thanks in advance.

Cartographer SLAM - TF Tree Errors

$
0
0
Hi everyone, I am completely stuck on a tf problem. What I try to do is slam with a laser sensor and an imu with cartographer_ros. According to the related tutorial, I define my physical layout of the robot in a urdf file: >>>>>>>>>>>>>>>>>>>>>>>>> type="fixed">>>>>> type="fixed">>>>>> This file clearly defines the transformation between base_link and imu_link as well as base_link with base_laser_link. Than I call cartographer to do slam which is calling state_publisher. However, cartographer shows an error that it cannot relate the imu_link to the base_link. Also in tf viewer in rqt it is visible, that imu_link and base_link are not connected via a transformation, while base_link and base_laser_link are connected without problems. Did anyone of you have a similar issue? Why doe the state_publisher not relate the imu_link with the base_link? ***Update*** The TF tree appears to be constructed correctly just using the robot state publisher. This means the base_link is parent to imu_link and base_laser_link. However, as soon as I start cartographer_ros node the tf tree is ripped appart. Then it shows the new topic odom (which shall be generated by the slam) which is parent to imu_link. Separatly (unconnected) to this also we still have the base_link topic which is parent to "base_laser_link". The error the cartographer is throwing is: "Could not find a connection between 'imu_link' and 'base_laser_link' because they are not part of the same tree.Tf has two or more unconnected trees. The related cartographer config file is: include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "imu_link", published_frame = "base_link", odom_frame = "odom", provide_odom_frame = true, publish_frame_projected_to_2d = false, use_odometry = false, use_nav_sat = false, use_landmarks = false, num_laser_scans = 1, num_multi_echo_laser_scans = 0, num_subdivisions_per_laser_scan = 1, num_point_clouds = 0, lookup_transform_timeout_sec = 0.2, submap_publish_period_sec = 0.3, pose_publish_period_sec = 5e-3, trajectory_publish_period_sec = 30e-3, rangefinder_sampling_ratio = 1., odometry_sampling_ratio = 1., fixed_frame_pose_sampling_ratio = 1., imu_sampling_ratio = 1., landmarks_sampling_ratio = 1., } TRAJECTORY_BUILDER_3D.num_accumulated_range_data = 160 MAP_BUILDER.use_trajectory_builder_3d = true MAP_BUILDER.num_background_threads = 7 POSE_GRAPH.optimization_problem.huber_scale = 5e2 POSE_GRAPH.optimize_every_n_nodes = 320 POSE_GRAPH.constraint_builder.sampling_ratio = 0.03 POSE_GRAPH.optimization_problem.ceres_solver_options.max_num_iterations = 10 POSE_GRAPH.constraint_builder.min_score = 0.62 POSE_GRAPH.constraint_builder.global_localization_min_score = 0.66 return options The idea is that the cartographer should fuse the imu and lidar data for localization (published as odom) and mapping. Do you have any clues? Before starting cartographer ![Before starting cartographer](/upfiles/15512595563767067.png) After starting cartographer: ![After starting cartographer](/upfiles/15512595989012966.png) Thanks a lot in advance!

How to load a urdf xml robot description on the Parameter Server?

$
0
0
I'm learning how to use robot_state_publisher using the tutorial on http://wiki.ros.org/robot_state_publisher/Tutorials/Using%20the%20robot%20state%20publisher%20on%20your%20own%20robot. I need to output tf and tf_static from the robot_state_publisher to run SLAM. My project is somewhat similar to Chefbot, and I'm using amcl_demo launch file, along with my files which outputs odometry and tf, and runs the robot's wheels. To be frank, I don't even konw whether doing so through is robot_state_publisher is necessary, because my bot looks similar to turtlebot and it doesn't have any moving links. Hence the tf should be same throughout. But for camera nodes to work, I require to publish tf and tf_static. I don't know how to make a urdf xml file and how to load it on the param server. And is there a way to edit turtlebot's urdf xml to match my bot's dimensions and design?

robot_state_publisher has died, joint_state_publisher has died

$
0
0
Hello, I am currently learning urdf and am trying to make a two wheeled robot. I created a base link (chassis) and am trying to visualize it in rviz. To run the urdf file, i have also created a launch file. But when i run the launch file it gives me following error: [ERROR] [1557809580.250795964]: Error reading Element value. [robot_state_publisher-3] process has died [pid 5324, exit code 255, cmd /opt/ros/kinetic/lib/robot_state_publisher/state_publisher __name:=robot_state_publisher __log:=/home/yash/.ros/log/25ab353a-7604-11e9-856b-7c2a31390882/robot_state_publisher-3.log]. log file: /home/yash/.ros/log/25ab353a-7604-11e9-856b-7c2a31390882/robot_state_publisher-3*.log [joint_state_publisher-2] process has died [pid 5323, exit code 1, cmd /home/yash/catkin_ws/src/joint_state_publisher/joint_state_publisher/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/yash/.ros/log/25ab353a-7604-11e9-856b-7c2a31390882/joint_state_publisher-2.log]. log file: /home/yash/.ros/log/25ab353a-7604-11e9-856b-7c2a31390882/joint_state_publisher-2*.log The Launch file i am running is mentioned below: I have searched for the solution on this forum but could not get any answers and hence i am posting this as a new question. Sometimes I also get an error saying: invalid tag: cannot load command parameter robot_description Can anyone please guide me with the rectification of this issue? Thanks.

Could not load the file sensor_msgs/JointState.h

$
0
0
Hi, I have an error with the package `robot_state_publisher` when I'm try to `catkin_make_isolated` with `ROS Melodic` on `Raspbian 9 (stretch)`. Specifically, I get an error from the file `robot_state_publisher/include/robot_state_publisher/joint_state_listener.h` on line `43`. `fatal error: sensor_msgs/JointState.h: No such file or directory` However, the dependency `sensor_msgs` is correctly loaded in the `package.xml` file and the searched file exists at the indicated path. Could you help me ? Best regards, Robin Hède.

facing error in robot_state_publisher

$
0
0
I am following the tutorials of urdf with robot state publisher: https://wiki.ros.org/urdf/Tutorials/Using%20urdf%20with%20robot_state_publisher but after catkin_make ,I am facing the following error: CMakeFiles/state_publisher.dir/src/state_publisher.cpp.o: In function `main': state_publisher.cpp:(.text+0x492): undefined reference to `tf::TransformBroadcaster::TransformBroadcaster()' state_publisher.cpp:(.text+0x7af): undefined reference to `tf::TransformBroadcaster::sendTransform(geometry_msgs::TransformStamped_> const&)' collect2: error: ld returned 1 exit status r2d2/CMakeFiles/state_publisher.dir/build.make:113: recipe for target '/home/charvi/ROS_PRACTISE/devel/lib/r2d2/state_publisher' failed make[2]: *** [/home/charvi/ROS_PRACTISE/devel/lib/r2d2/state_publisher] Error 1 CMakeFiles/Makefile2:1190: recipe for target 'r2d2/CMakeFiles/state_publisher.dir/all' failed make[1]: *** [r2d2/CMakeFiles/state_publisher.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed I also did the same changes in CMakeLists.txt as mentioned in the tutorials. find_package(catkin REQUIRED COMPONENTS roscpp rospy sensor_msgs std_msgs tf ) include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(state_publisher src/state_publisher.cpp) target_link_libraries(state_publisher ${catkin_LIBRARIES}) catkin_package( INCLUDE_DIRS include CATKIN_DEPENDS roscpp rospy sensor_msgs std_msgs tf )
Viewing all 72 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>