Hello everyone,
When I run rviz under Kinetic on minipc, it show me this:
rosrun rviz rviz
/opt/ros/kinetic/lib/rviz/rviz: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: undefined symbol: _ZN24QAbstractDeclarativeData15setWidgetParentE
It seems there are some wrong with Qt.
I had saw some questions just like this,but get nothing to solve this.
ldd /opt/ros/kinetic/lib/librviz.so | grep Qt
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f936b63f000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f9369640000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f9368f9a000)
there is no wrong with the librviz,can someone tell me how to solve this?
thx.
↧
Rviz symbol lookup error
↧
static_transform_publisher acting weird when giving tranlation and rotation both
I am playing a rosbag containing pointclouds on ros kinetic.
I need to set the tf so that it is at a decent location to the [Panda robot](https://frankaemika.github.io/) for some task.
The following is the relevant line from my launch file that set the static transform
When running the code like this (with translation and rotation given) the result is:
At time 1527473959.781
- Translation: [0.397, -1.842, 0.671]
- Rotation: in Quaternion [-0.815, -0.057, 0.082, 0.571]
in RPY (radian) [-1.914, 0.068, 0.188]
in RPY (degree) [-109.640, 3.898, 10.784]
When just rotation or translation is given it works fine.
Any help is greatly appreciated.
Thank you in advance.
↧
↧
how to fix map?
I trying to mapping. my rplidar is a2, and using hector slam
[link text]( https://youtu.be/gtI-O04xKWM)
this link is my mapping test video..
probably that is wrong
I think that map is drawing like this in link [link text](https://youtu.be/pCF7P7u8pDk)
I use default launch file in rplidar_ros, hector_slam
(rplidar_ros/launch/view_rplidar.launch & hector_slam/hector_mapping/launch/mapping_default.launch)
how to fix the map, what should I do ??
please advice
↧
Finger positions of kinova arm does not update in RViz
Dear ROS community,
I am using kinova-ros package installed from source (kinova-driver release 1.2.1). The finger positions of kinova arm does not update in Rviz.
But both joint_state and finger positions topics are published. And I am able to controller each fingers with the script "fingers_action_client.py".
rosrun kinova_demo fingers_action_client.py j2n6s300 -r -v percent -100 -100 100
Tf is intact.
snippet of topic /j2n6s300_driver/out/joint_state
name: ['j2n6s300_joint_1', 'j2n6s300_joint_2', 'j2n6s300_joint_3', 'j2n6s300_joint_4', 'j2n6s300_joint_5', 'j2n6s300_joint_6', 'j2n6s300_joint_finger_1', 'j2n6s300_joint_finger_2', 'j2n6s300_joint_finger_3']
position: [4.357342735441942, 2.9764899818103308, 0.8698737663328161, 3.9588342341413187, 1.6252170915642843, 1.3924464259631075, 0.012781970648700604, 0.012063306225569713, 0.012268638026209425]
velocity: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
effort: [-0.21822483837604523, -0.0, 0.003679371438920498, -0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
snippet of topic /j2n6s300_driver/out/finger_position
finger1: 62.25
finger2: 58.75
finger3: 59.75
---
Arm model: j2n6s300
rosversion: Kinetic
↧
Gmapping doesn't notice robot is stuck on Gazebo
Hello !
I am trying to do slam with gmapping on a custom robot simulated on Gazebo. My robot has a squared base, two wheel at the front, one caster at the back, a laser scan(similar to RpLidar) and an IMU. Odom is get thank to diff_drive_controller.
At first, I noticed that my odom was awful. For example, when rotating the robot, the laser scan was totally wrong and didn't match the walls previoulsy seen. So I used robot_pose_efk to fuse IMU and odom data.
Now, the results are very satisfaying : the new scans match up the old ones when rotating the robot and I am able to perform SLAM on a "complexe" world. Troubles come when my robot get stucks somewhere. For example, if I use teleop to make the robot moving against the wall, rviz doesn't see that at all. It will act as the robot is continuing its path normally, though it is completely stuck on gazebo. As a result, my map become totally wrong.
My question is : how can I avoid this ? I thought fusing IMU and odom were going to be sufficient, but apparently I was wrong. So what then ? Adding bumpers or other sensors to detect a collision with a wall ? Can I achieve that with my already implemented laser scan ?
Here's my lauch file to start simulation :
Here's my launch file to start gmapping:
And here's my urdf for my robot :
https://github.com/erenaud3/myRobotUrdf/blob/master/dummySquareBase.urdf.xacro
↧
↧
How to make a maker parallel to a vector
Hi there, I'm trying to define a marker(cylinder) which connects two known frames visualized in rviz.
I want this maker point from one frame to the other frame...
And the what I've gotten now is the transform between these two known frames. The first thing I come up with is make this marker parallel to this transform vector. But I was failed to implement this idea.
I would be appreciated if you can give some Pseudo Code (and the function names that will be perfect).
OR, maybe a greater idea to make this thing up.
Code_of_mine
marker.pose.position.x = ls_transform.getOrigin().x()/2;
marker.pose.position.y = ls_transform.getOrigin().y()/2;
marker.pose.position.z = ls_transform.getOrigin().z()/2;
marker.pose.orientation.x = ls_transform.getRotation().x();
marker.pose.orientation.y = ls_transform.getRotation().y();
marker.pose.orientation.z = ls_transform.getRotation().z();
marker.pose.orientation.w = ls_transform.getRotation().w();
And the marker is put in the middle of two frame, but the angle is not correct. (Sorry I can't load up my picture cause I don't got enough points...)
P.S. I set the marker_frame follow the one of two frames(which means origin = 0). When I set the marker_frame is my first frame, problem still occur.
↧
How to show marker with utf8 in RViz
Hello everyone,
I wanna show a TEXT_VIEW_FACING Marker in RViz with utf-8 encoding, but Marker doesn't show in RViz, new_mark.text is a std::string value and print in terminal.
std::cout << "it -> first: " << it.first << std::endl;
QString tr1 = QString::fromStdString(it.first);
if(typeid(it.first) == typeid(std::string))
std::cout << "Bestätigt" << std::endl;
std::cout << (typeid(tr1) == typeid(QString)) << std::endl;
QString tr2 = tr1.toUtf8();
new_mark.text = tr2.toStdString();
Can someone tell me how can I show this marker in utf-8 encoding? or how to modify this code?
↧
Using xacro to automate inertial calculations sequence/float error
I am trying to automatically calculate inertial values for a simulated robot. The purpose is to be able to change the dimensions and have the inertia automatically calculated. Here is my macro
I have xacro properties as follows.
When I try to run the macro it comes up with an error. My link tags...
The error is
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
**can't multiply sequence by non-int of type 'float'
when evaluating expression '(0.83)*mass*(width+height)'**
when instantiating macro: cuboid_inertial (/home/mrhinelander/catkin_ws/src/kiwi/kiwi_description/urdf/kiwi.urdf.xacro)
in file: /home/mrhinelander/catkin_ws/src/kiwi/kiwi_description/urdf/kiwi.urdf.xacro
Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro '/home/mrhinelander/catkin_ws/src/kiwi/kiwi_description/urdf/kiwi.urdf.xacro'] returned with code [2].
Param xml is
The traceback for the exception was written to the log file
I am assuming it is trying to multiply a sequence to a float but I am not sure what the sequence is when my parameters are clearly defined as ints.
↧
Rviz OGRE Exception(2:InvalidParametersException)
Hi all,
I am running the [map_merger](http://wiki.ros.org/map_merger) and [adhoc_communication](http://wiki.ros.org/adhoc_communication) nodes.
Upon running Rviz in Ubuntu 14.04.02 in ROS Indigo, the map that I am receiving is not being displayed in Rviz's Map Panel.
I am getting the following error in terminal when it crashes.
:~$ rosrun rviz rviz
[ INFO] [1456839797.277826148]: rviz version 1.11.10
[ INFO] [1456839797.277920664]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [1456839797.424068151]: Stereo is NOT SUPPORTED
[ INFO] [1456839797.424221656]: OpenGl version: 3 (GLSL 1.3).
[ WARN] [1456839858.058198339]: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'Ogre::InvalidParametersException'
what(): OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283)
Aborted (core dumped)
↧
↧
RVIZ crashes on loading default.rviz
RVIZ suddenly crashes on loading ros/src/.config/rviz/default.rviz.
OS:ubuntu14.04
ROS:indigo
I found same problem. And I changed like this:
the last two lines of $path/Autoware/ros/src/.config/rviz/default.rviz, which like:
X: 1895
Y: 44
to smaller numbers:
X: 100
Y: 100
but couldn’t solve problem
So,I tried gdb
CF-SX2JDHYS:~$ gdb rviz
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rviz...(no debugging symbols found)...done.
(gdb) bt
No stack.
(gdb) Quit
(gdb) q
CF-SX2JDHYS:~$ gdb rviz
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rviz...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/ros/indigo/bin/rviz
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdaf70700 (LWP 4296)]
[New Thread 0x7fffda76f700 (LWP 4297)]
[New Thread 0x7fffd94bf700 (LWP 4298)]
[New Thread 0x7fffd8cbe700 (LWP 4299)]
[New Thread 0x7fffcbfff700 (LWP 4300)]
[ INFO] [1528281880.705350932]: rviz version 1.11.18
[ INFO] [1528281880.705418095]: compiled against Qt version 4.8.6
[ INFO] [1528281880.705436654]: compiled against OGRE version 1.8.1 (Byatis)
[New Thread 0x7fffcb20b700 (LWP 4304)]
[New Thread 0x7fffcaa0a700 (LWP 4305)]
[New Thread 0x7fffca209700 (LWP 4306)]
[New Thread 0x7fffc9a08700 (LWP 4312)]
[New Thread 0x7fffaea8b700 (LWP 4313)]
[New Thread 0x7fffae28a700 (LWP 4314)]
[New Thread 0x7fffada89700 (LWP 4315)]
[New Thread 0x7fffad288700 (LWP 4316)]
[ INFO] [1528281880.997841341]: Stereo is NOT SUPPORTED
[ INFO] [1528281880.997936728]: OpenGl version: 3 (GLSL 1.3).
[New Thread 0x7fff96e35700 (LWP 4330)]
[New Thread 0x7fff96634700 (LWP 4331)]
[Thread 0x7fffcbfff700 (LWP 4300) exited]
bt
[New Thread 0x7fffcbfff700 (LWP 4358)]
[Thread 0x7fffcbfff700 (LWP 4358) exited]
[New Thread 0x7fffcbfff700 (LWP 4365)]
[New Thread 0x7fff87c99700 (LWP 4366)]
[New Thread 0x7fff87498700 (LWP 4367)]
[New Thread 0x7fff86c97700 (LWP 4368)]
[New Thread 0x7fff86496700 (LWP 4369)]
[New Thread 0x7fff85c95700 (LWP 4370)]
[Thread 0x7fff86496700 (LWP 4369) exited]
[Thread 0x7fff87498700 (LWP 4367) exited]
[Thread 0x7fff85c95700 (LWP 4370) exited]
[Thread 0x7fff86c97700 (LWP 4368) exited]
[Thread 0x7fffd8cbe700 (LWP 4299) exited]
[Thread 0x7fff87c99700 (LWP 4366) exited]
[New Thread 0x7fff87c99700 (LWP 4373)]
[New Thread 0x7fffd8cbe700 (LWP 4374)]
[Thread 0x7fff87c99700 (LWP 4373) exited]
[Thread 0x7fffd8cbe700 (LWP 4374) exited]
[New Thread 0x7fffd8cbe700 (LWP 4379)]
[New Thread 0x7fff87c99700 (LWP 4380)]
[New Thread 0x7fff86c97700 (LWP 4381)]
[Thread 0x7fffcbfff700 (LWP 4365) exited]
[Thread 0x7fffd8cbe700 (LWP 4379) exited]
[Thread 0x7fff86c97700 (LWP 4381) exited]
[New Thread 0x7fff86c97700 (LWP 4382)]
[New Thread 0x7fffd8cbe700 (LWP 4383)]
[Thread 0x7fff87c99700 (LWP 4380) exited]
[Thread 0x7fff86c97700 (LWP 4382) exited]
[New Thread 0x7fff86c97700 (LWP 4388)]
[New Thread 0x7fff87c99700 (LWP 4389)]
[Thread 0x7fffd8cbe700 (LWP 4383) exited]
[Thread 0x7fff86c97700 (LWP 4388) exited]
[New Thread 0x7fff86c97700 (LWP 4390)]
[New Thread 0x7fffd8cbe700 (LWP 4391)]
[New Thread 0x7fffcbfff700 (LWP 4392)]
[Thread 0x7fff86c97700 (LWP 4390) exited]
[Thread 0x7fffcbfff700 (LWP 4392) exited]
[Thread 0x7fffd8cbe700 (LWP 4391) exited]
Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:286
286 ../sysdeps/x86_64/multiarch/../strcmp.S: そのようなファイルやディレクトリはありません.
(gdb) bt
#0 __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:286
#1 0x00007fff6af4809e in QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags, QMetaObject const*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2 0x00007fff6a73d7b7 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#3 0x00007ffff7dea1da in call_init (l=, argc=argc@entry=1,
argv=argv@entry=0x7fffffffdcb8, env=env@entry=0x7fffffffdcc8)
at dl-init.c:78
#4 0x00007ffff7dea2c3 in call_init (env=,
argv=, argc=, l=)
at dl-init.c:36
#5 _dl_init (main_map=main_map@entry=0x1ae6190, argc=1, argv=0x7fffffffdcb8,
env=0x7fffffffdcc8) at dl-init.c:126
#6 0x00007ffff7deed00 in dl_open_worker (a=a@entry=0x7fffffffc3a8)
at dl-open.c:577
#7 0x00007ffff7dea094 in _dl_catch_error (
objname=objname@entry=0x7fffffffc398,
errstring=errstring@entry=0x7fffffffc3a0,
mallocedp=mallocedp@entry=0x7fffffffc390,
operate=operate@entry=0x7ffff7deea30 ,
args=args@entry=0x7fffffffc3a8) at dl-error.c:187
#8 0x00007ffff7dee44b in _dl_open (
---Type to continue, or q to quit---q
file=0x1adb728 "/opt/ros/indigo/lib//libjsk_Quit
please let me know if you know any solution.
↧
ROS kinetic mesh error
Hi
I'm trying to create a hand model in Rviz but when I'm trying to launch my hand model, terminal shows error but my robot model has been launched without mesh
error:
[joint_state_publisher-1] process has died [pid 23769, exit code 1, cmd /opt/ros/kinetic/lib/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/misiek/.ros/log/f283dd5c-6a41-11e8-bf9c-000c2952c6a7/joint_state_publisher-1.log].
log file: /home/misiek/.ros/log/f283dd5c-6a41-11e8-bf9c-000c2952c6a7/joint_state_publisher-1*.log
my urdf code:
1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey 1000.0 10.0 10.0 10.0 Gazebo/Grey
Launch file:
Thank you in advance
↧
Turtlebot depth image not showing in image_view
Hello,
I want to try some opencv algorithms with depth images from the turtlebot1 (create base). I want to save them for later use because of the complexity of modifying and remaking a node.
We have our Turtlebot started with Turtlebot_bringup minimal.launch and turtlebot_bringup 3dsensor.launch. RVIZ is currently showing */camera/depth_registered/image_raw* (which dont look as detailed as I imagined looking at the IR image) but not any */camera/depth/* topic. I tried `rostopic hz /camera/depth/image_raw` but it is not publishing.
`rosrun image_view image_view image:=/camera/depth_registered/image_raw` says:
> Unable to convert '16UC1' image to bgr8: '[16UC1] is not a color format. but [bgr8] is. The conversion does not make sense'
Can I somehow easily save these images for later processing?
↧
Is multi robots simulation in kinetic possible?
Is it possible to do multi robot simulation like described in this answer in ROS kinetic? https://answers.ros.org/question/41433/multiple-robots-simulation-and-navigation/
↧
↧
Visualizing vector of geometry_msgs::PoseStamped
I'm using ROS Indogo in Ubuntu. I've made a list of poses which are supposed to be from the same circle in cpp and now I want to visualize whether I accumulated the correct poses in the vector of type geometry_msgs::PoseStamped. How can I visualize this using RViz?
↧
Isolated and non-isolated ament build command behave differently
I'm building ros2 from source using this [dockerfile](https://gitlab.com/kunaltyagi/dockerfiles/snippets/1723360). This is outcome of [this question](https://answers.ros.org/question/293443/docker-ament-command-not-found/). TLDR: the additional packages recommended on [the wiki](https://github.com/ros2/ros2/wiki/Linux-Development-Setup) plus `ros2:ardent-basic` image.
Isolated build complete successfully, but non-isolated builds fail (specifically `rviz_rendering` fails due to missing `RenderSystems/GL/OgreGLPlugin.h`). Apart from this package, no other package has such an issue. Ideally, I'd expect the non-isolated build to not fail for missing header files if the isolated build doesn't (as @marguedas pointed it out on [this post](https://discourse.ros.org/t/isolated-in-docker-image/3504/2?u=tyagikunal)).
To reproduce, use the docker image and run:
cd
mkdir -p ros2/src
wget https://raw.githubusercontent/ros2/ros2/release-latest/ros2.repos
vcs-import src < ros2.repos
src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install
src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install --isolated
↧
RVIZ visualize the data in the different plane. How to fix that?
I have set up an environment in gazebo with Kinect sensor. Sensor position and the joint is fine.
But I visualize the `pointcloud` data in Rviz it is showing in XZ plane instead of XY plane. Take a look at the following image
.
In the image above, it is capturing the image from the front in gazebo but showing on the top of the robot in Rviz.
I tried to put the static transform between frames.
` `
But its conflicting with the transform published by `robot_state_publisher`.
How to set the kinect frame???
↧
Moveit teleoperation of 3DOF arm with 3D mouse
In short, I want to control the endeffector of my 3DOF arm in cartesian space with a 3D mouse. (Very similar to https://answers.ros.org/question/226958/best-way-to-use-moveit-for-teleoperation/ , only that my robot arm only has 3 DOF)
What I got working so far:
- Moveit configuration generated
- I can move the interactive marker, plan and execute paths in Rviz
- I can move the arm into goal poses with orientation from python
Now my problem seems to be that due to the lack of DOFs I always need the orientation values for the EEF in the moveit interface to plan poses that I want my endeffector to end up in.
I attempted to
- generate an IKFast solver using the Translation3D configuration/parameter => compiles, works, however still requires orientation?!
- play with the tolerance as mentioned in https://bitbucket.org/traclabs/trac_ik/issues/30/use-trac_ik_plugin-with-3dof-robot (changed the value in the all_close() function)
- tried to set position_only_ik: True in kinematics.yaml
- took a look at https://github.com/ros-planning/moveit/issues/548 however I dont want any EEF rotation (also can set it), just an EEF x,y,z position
Now my question is: How can I get moveit to plan paths to EEF positions without needing to specify any orientation values?
↧
↧
How to display sonar readings in Rviz
I have a custom robot and have a URDF model of it set up in rviz. I have several Sonars and Sharp IR sensors mounted on it. I'm working my way toward using the navigation tools, how do I show my sensor readings in Rviz? Or am I heading in the wrong direction?
↧
How use the octomap with a real map (Mapping reality) in Rviz
Hello, I am a beginner on ros, and I try to work on the turtlebot2, so, I succeeded to use the octomap to create a 3D map with Gazebo on Rviz, but now, I try to do the same thing but I want to mapping a real room and with octomap to see in 3D on Rviz.I try a lot of things like to use this pointcloud_to_laserscan, octomap_server, but it does not work, so I don't know how I do that.
I hope that someone can help me.
Thanks for your help
↧
How to control the 'ghost' in MoveIt's Rviz MotionPlanning plugin from code?
Hi guys,
I am fairly new to MoveIt's MotionPlanning API. When adding the MotionPlanning plugin to rviz, a 'ghost' of the controlled robot arm is spawned, along with an interactive marker that can be used to drag it around. Is there also a way to control the ghost (the end effector and the joints) in a cpp node? Can the joint states of this ghost be read out somewhere?
Cheers,
Tim
↧