ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Julien Audet's profile - activity

2020-11-21 14:11:11 -0500 commented answer Multi-touch support for RVIZ visualizer

If I remember right, I couldn't make the two finger pinch work for zoom in or zoom out, but it did work with two finger

2020-11-21 14:10:59 -0500 commented answer Multi-touch support for RVIZ visualizer

If I remember right, I couldn't make the two finger pinch work for zoom in or zoom out, but it did work with two finger

2020-07-14 05:15:36 -0500 received badge  Enlightened (source)
2020-07-14 05:15:36 -0500 received badge  Good Answer (source)
2020-06-10 19:54:03 -0500 received badge  Famous Question (source)
2020-02-15 00:44:05 -0500 received badge  Famous Question (source)
2020-02-14 15:41:59 -0500 edited answer How to improve the robot frame rate when using motion planning in rViz?

You can set it programmatically with : rviz::Display moveit_display = rviz_manager_->createDisplay("moveit_rviz_plu

2020-02-14 15:40:47 -0500 marked best answer How to improve the robot frame rate when using motion planning in rViz?

Hello there,

I am currently trying to get a better frame rate for the motion planning plugin in rViz. Right now, I have a frame rate of 1 or 2 Hz. Another user had the same problem, which looked like this : https://www.youtube.com/watch?v=Q2yPO.... His solution was to increase the joint_state_publisherrate (https://answers.ros.org/question/3077...), but in my code, I only use my own moveIt "robot"_planning_execution launch file, which loads multiple launch files (like robot_interface_simulator.launch, planning_context.launch and move_group.launch) and a robot_state_publisher node. Also, if I load a robot model in rViz, the frame rate is way faster than the motion planning plugin.

So my question is, how do I increase the frame rate for the motion planning plugin in rViz if I don't use a joint_state_publisher?

I am using kinetic with rviz version 1.12.17.

Thanks,

Julien Audet

2020-02-14 15:40:38 -0500 edited answer How to improve the robot frame rate when using motion planning in rViz?

You can set it programmatically with : rviz::Display moveit_display = rviz_manager_->createDisplay("moveit_rviz_plu

2020-02-14 15:39:42 -0500 answered a question How to improve the robot frame rate when using motion planning in rViz?

You can set it programmatically with : rviz::Display moveit_display = rviz_manager_->createDisplay("moveit_rviz_plu

2020-01-07 09:58:18 -0500 received badge  Notable Question (source)
2019-10-03 15:29:05 -0500 received badge  Notable Question (source)
2019-09-24 12:58:31 -0500 received badge  Popular Question (source)
2019-09-24 08:38:51 -0500 received badge  Famous Question (source)
2019-09-23 12:14:17 -0500 commented question Using Descartes with tool changing

I would only be performing a single lookup since it is a static transform between the flange and the tool tip, so it wou

2019-09-23 08:46:46 -0500 commented question Using Descartes with tool changing

Thank you, that makes sense! However, I think the IKFast plugin must be generated for a particular frame (therefore a pa

2019-09-21 11:26:00 -0500 received badge  Popular Question (source)
2019-09-21 11:26:00 -0500 received badge  Notable Question (source)
2019-09-20 14:22:46 -0500 commented question Using Descartes with tool changing

An ugly solution is to create a new frame in the robot urdf and place it where my tool axis would be, although all my to

2019-09-19 14:12:35 -0500 asked a question Using Descartes with tool changing

Using Descartes with tool changing Hello there, I've been using Descartes quite a lot with no problem, using a generate

2019-09-19 13:14:31 -0500 received badge  Popular Question (source)
2019-09-19 02:06:17 -0500 received badge  Nice Answer (source)
2019-09-18 16:57:04 -0500 received badge  Self-Learner (source)
2019-09-18 16:57:04 -0500 received badge  Teacher (source)
2019-09-18 14:12:29 -0500 marked best answer Attached collision objects ignore environment

Hello fellow ROS users,

I've never had problems using collision objects (unattached); collision checking always works perfectly with Moveit or Descartes. The issue arise when I try to attach a collision object (in this example, a tool) to the robot and use the move_group api to move the robot into collision (another collision object, which is a table). I can see visually that the collision object is attached (orange to purple in rViz and I can move the robot with the tool), but collision checking is ignored between the attached tool and the environment when using the move_group api.

Using the moveit motion planning directly in rViz, collision between the attached tool and the table is detected correctly. This is the following message I get when I plan to move the attached tool into it :

[ INFO] [1568823161.942566491]: Found a contact between 'table' (type 'Object') and 'tool' (type 'Robot attached'), which constitutes a collision. Contact information is not stored.

Planning failed like it was supposed too. I can't seem to find why it doesn't fail when using the move_group api. I've tried using different link_name (since tool0 has no geometry), but to no avail. I've noticed that there doesn't seem to be any attached collision objects (or even collision objects) in the planning scene when I use getAttachedCollisionObjectMsgs() or getCollisionObjectMsgs(), is the planning scene not updated? Yet, it fails if any robot link (BUT the tool) touches the table, so the table is in the planning scene.

A similar question: #q324672.

*EDIT : I've noticed that in rViz, the looping animation doesn't have the attached tool while using the move_group api, but does, when using motion planning plugin on rViz directly. By looking at the topic move_group/display_planned_path, I can see that there is no attached collision object when using the move_group api. *

Here's my code :

int main(int argc, char** argv)
{
// Ros init
ros::init(argc, argv, "moveit_node");
ros::NodeHandle nh;

// Async spinner
ros::AsyncSpinner async_spinner(1);
async_spinner.start();

// Planning scene interface for adding collision objects
moveit::planning_interface::PlanningSceneInterface planning_scene_interface;

/*/ Create table collision object /*/

// Collisions objects and colors vector
std::vector<moveit_msgs::CollisionObject> collision_objects;
std::vector<moveit_msgs::ObjectColor> object_colors;

// Create collision object (table)
moveit_msgs::CollisionObject table;
table.header.frame_id = "world";
table.id = "table";

shape_msgs::SolidPrimitive table_primitive;
table_primitive.type = table_primitive.BOX;
table_primitive.dimensions.resize(3);
table_primitive.dimensions[0] = 2;
table_primitive.dimensions[1] = 2;
table_primitive.dimensions[2] = 0.01;

geometry_msgs::Pose table_pose;
table_pose.orientation.w = 1.0;
table_pose.position.x = 0;
table_pose.position.y = 0;
table_pose.position.z = -0.01;

table.primitives.push_back(table_primitive);
table.primitive_poses.push_back(table_pose);
table.operation = table.ADD;

collision_objects.push_back(table);

moveit_msgs::ObjectColor table_color;
table_color.id = "table";
table_color.color.a = 1;
table_color.color.r = 0.7;
table_color.color.g = 0.7;
table_color.color.b = 0.8;

object_colors.push_back(table_color);

// Create collision object (tool)
moveit_msgs::CollisionObject tool_object;
tool_object.id = "tool";
tool_object.header.frame_id = "tool0";

shape_msgs::SolidPrimitive tool_primitive;
tool_primitive.type = table_primitive.BOX;
tool_primitive.dimensions.resize(3);
tool_primitive.dimensions[0] = 0.05;
tool_primitive.dimensions ...
(more)
2019-09-18 14:12:19 -0500 answered a question Attached collision objects ignore environment

I've found the problem, I had to get the "locked" planning scene from a planning scene monitor to correctly initialize m

2019-09-18 14:12:19 -0500 received badge  Rapid Responder (source)
2019-09-18 13:18:29 -0500 edited question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-18 13:18:04 -0500 edited question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-18 12:39:06 -0500 edited question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-18 12:38:58 -0500 edited question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-18 12:27:04 -0500 edited question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-18 12:27:04 -0500 received badge  Editor (source)
2019-09-18 11:42:27 -0500 asked a question Attached collision objects ignore environment

Attached collision objects ignore environment Hello fellow ROS users, I've never had problems using collision objects (

2019-09-17 11:50:09 -0500 edited question How to improve the robot frame rate when using motion planning in rViz?

How to improve the robot frame rate when using motion planning in rViz? Hello there, I am currently trying to get a bet

2019-09-17 11:16:52 -0500 asked a question How to improve the robot frame rate when using motion planning in rViz?

How to improve the robot frame rate when using motion planning in rViz? Hello there, I am currently trying to get a bet

2019-09-17 10:44:10 -0500 received badge  Notable Question (source)
2019-09-17 10:44:10 -0500 received badge  Famous Question (source)
2019-07-10 15:45:26 -0500 commented answer Multi-touch support for RVIZ visualizer

I finally tried it, and it works pretty well with touchegg!

2019-04-11 14:35:04 -0500 received badge  Student (source)
2019-03-29 09:11:36 -0500 commented answer Multi-touch support for RVIZ visualizer

I haven't tried it yet, but I think Touchégg [1] would work for converting touch events into mouse events in RViz. You c

2019-03-28 08:39:20 -0500 received badge  Enthusiast
2019-03-27 11:39:52 -0500 marked best answer Getting the OrbitViewController in librviz

Hello, ROS community.

I have been using librviz with Qt on ROS kinetic in order to create an interactive visualization of points cloud, paths, etc for an application. My problem is as follows. I am trying to change the camera distance of rviz current viewController using the librviz documentation [1] with C++. I have set the view controller to rviz::OrbitViewController [2], so using its function zoom(float amount) would be rather straightforward. The problem is that the getCurrent() function of the view manager only returns a rviz::ViewController, which means that the child functions of rviz::OrbitViewController cannot be accessed.

For example, this is what I want to do :

  // Set as the Orbit view controller
  QString class_id = "rviz/Orbit";
  manager_->getViewManager()->setCurrentViewControllerType(class_id);
  ...
  // When the zoom button is clicked
  manager_->getViewManager()->getCurrent()->zoom(1.0); // doesn't work

But the function zoom doesn't exist in the parent rviz::ViewController, only in the child rviz::OrbitViewController. My question is quite similar to https://answers.ros.org/question/2955... . There were no answers unfortunately. Thank you for your time.

Julien Audet

[1] http://docs.ros.org/kinetic/api/rviz/...

[2] http://docs.ros.org/kinetic/api/rviz/...