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

kotoko's profile - activity

2022-06-29 07:16:30 -0500 received badge  Famous Question (source)
2021-04-29 02:54:16 -0500 received badge  Notable Question (source)
2021-04-29 02:54:16 -0500 received badge  Popular Question (source)
2021-04-29 02:54:16 -0500 received badge  Famous Question (source)
2020-09-21 17:22:51 -0500 marked best answer Create octree

Hi!

This question is really simple I think but I can't figure it out. This code:

#include <octomap_msgs/Octomap.h>//Octomap Binary
#include <octomap/OcTree.h>
#include <octomap_msgs/conversions.h>

int main(int argc, char **argv)
{
  ros::init(argc, argv, "mapper");
  ros::NodeHandle n;
  octomap::OcTree* octomap_ = new octomap::OcTree(0.1f);
  ros::spin();
  return 0;
}

Gives this compile error

CMakeFiles/mapper_node.dir/src/nodes/mapper_node.cpp.o: In function `octomath::Pose6D::Pose6D(octomath::Pose6D const&)':
mapper_node.cpp:(.text._ZN8octomath6Pose6DC2ERKS0_[_ZN8octomath6Pose6DC5ERKS0_]+0x3a): undefined reference to `octomath::Quaternion::Quaternion(octomath::Quaternion const&)'
CMakeFiles/mapper_node.dir/src/nodes/mapper_node.cpp.o: In function `octomap::OcTreeNode::updateOccupancyChildren()':
mapper_node.cpp:(.text._ZN7octomap10OcTreeNode23updateOccupancyChildrenEv[_ZN7octomap10OcTreeNode23updateOccupancyChildrenEv]+0x14): undefined reference to `octomap::OcTreeNode::getMaxChildLogOdds() const'
CMakeFiles/mapper_node.dir/src/nodes/mapper_node.cpp.o: In function `octomap::OcTreeBaseImpl<octomap::OcTreeNode, octomap::AbstractOccupancyOcTree>::OcTreeBaseImpl(double)':
mapper_node.cpp:(.text._ZN7octomap14OcTreeBaseImplINS_10OcTreeNodeENS_23AbstractOccupancyOcTreeEEC2Ed[_ZN7octomap14OcTreeBaseImplINS_10OcTreeNodeENS_23AbstractOccupancyOcTreeEEC5Ed]+0x1a): undefined reference to `octomap::AbstractOccupancyOcTree::AbstractOccupancyOcTree()'

Isn't this the simplest possible initialization? What am I missing?

octree 1.6.9, indigo

2020-09-21 17:22:51 -0500 received badge  Self-Learner (source)
2020-03-24 09:13:12 -0500 received badge  Famous Question (source)
2020-03-24 09:13:12 -0500 received badge  Popular Question (source)
2020-03-24 09:13:12 -0500 received badge  Notable Question (source)
2020-03-06 15:38:32 -0500 received badge  Famous Question (source)
2020-02-16 12:07:01 -0500 received badge  Notable Question (source)
2020-02-16 12:07:01 -0500 received badge  Popular Question (source)
2019-08-20 08:11:36 -0500 marked best answer DJI Matrice compatibility with ROS

Hello all!

Has anyone successfully integrated ROS (kinetic or indigo) into DJI Matrice series 200 and 600? They look very proprietary & Windows / Mac oriented but the platforms sure are sweet. Especially for higher level decision experiments.
I am aware they have both an onboard SDK and a ROS node. However, the buzz in my corner of the world is that the SDK is poorly documented and unstable and that the ROS node is quite limited. What I am asking is if anyone has hands-on experience.

Thanks in advance for sharing your experience.

2019-08-20 08:11:33 -0500 received badge  Nice Question (source)
2019-06-16 06:28:03 -0500 received badge  Famous Question (source)
2019-06-13 10:28:31 -0500 received badge  Notable Question (source)
2019-06-13 10:28:31 -0500 received badge  Famous Question (source)
2019-05-28 04:34:53 -0500 received badge  Famous Question (source)
2019-04-11 05:05:27 -0500 received badge  Notable Question (source)
2019-04-02 09:31:15 -0500 received badge  Notable Question (source)
2019-04-02 09:31:15 -0500 received badge  Famous Question (source)
2018-10-11 09:41:04 -0500 edited question Octomap as regular grid

Octomap as regular grid Hi, Is it possible to use octomap as a regular grid instead of multi-resolution? It is for com

2018-10-11 09:40:43 -0500 edited question Octomap as regular grid

Octomap as regular grid Hi, Is it possible to use octomap as a regular grid instead of multi-resolution? It is for com

2018-10-11 09:40:43 -0500 received badge  Associate Editor (source)
2018-10-11 09:40:25 -0500 edited question Octomap as regular grid

Octomap as regular grid Hi, Is it possible to use octomap as a regular grid instead of multi-resolution? It is for com

2018-10-10 08:11:47 -0500 asked a question Octomap as regular grid

Octomap as regular grid Hi, Is it possible to use octomap as a regular grid instead of multi-resolution? It is for com

2018-10-10 08:11:46 -0500 asked a question Octomap as regular grid

Octomap as regular grid Hi, Is it possible to use octomap as a regular grid instead of multi-resolution? It is for com

2018-09-27 13:34:25 -0500 received badge  Famous Question (source)
2018-08-28 15:05:06 -0500 received badge  Famous Question (source)
2018-08-27 02:44:36 -0500 marked best answer How to use tf for custom rotation

Hi!

I am trying to generate the starting points and the ending points of the following arrows: image description

The idea is that I get the start (yellow, 0,0,2) and the end (orange 1, 1, 5).
The arrows are the path of ray tracing to find obstacles.
These arrows should all be parallel amongst themselves but also orthogonal to the vector start to goal. The search should be within a given safety margin.

I given a detailed description of what I've done bellow but here is what I wanted to ask Since we can specify frames just by giving the offset and the angles and then tf can calculate the transform, I thought there might be a way to create dynamic frames and then use the same functions as tf to find the transform. Is this possible?

The approach I used to generate the image was to imagine a 2D square (over x and z) around both start and goal. Then to find the yaw and roll that make the squares parallel and perform the rotation. This approach fails when the points need to be generated over both x and y ( you can see in the picture that square should be rotated in the direction of the camera). The code is at https://github.com/margaridaCF/Flying...

Then I thought of generating the points in an auxiliary frame at the origin. Always generating the points in x and z and then rotating them back. This would be done combining the following

    final_transform_start = translation_from_center_start * rotation_roll * rotation_yaw;
    final_transform_end   = translation_from_center_end   * rotation_roll * rotation_yaw;

In this approach, I run into issues with angles being interpreted clockwise and counterclockwise (I think) and also how to handle 90º yaw and roll. The code can be found here https://github.com/margaridaCF/Flying...

UPDATE: (Building on the answer from @PeteBlackerThe3rd )

I started with this process but got hanged on point 3 because there was too much freedom to choose and I couldn't figure out how to decide when I got the right one.

Later a colleague pointed out that all I need to do is check if the norm of the normalization of the dot product of the axis with the direction vector is below 0.9 (more or less).
When it is 1 they are parallel and when it's over ~0.9 the cross product will lose accuracy.
If this is the case just use another unit axis. As unit axis are orthogonal, if it is close to parallel in one axis it won't be in the others.

| direction * î | < ~0.9
2018-08-23 13:04:48 -0500 received badge  Notable Question (source)
2018-08-23 10:27:20 -0500 answered a question How to use tf for custom rotation

(Building on the answer from @PeteBlackerThe3rd ) I started with this process but got hanged on point 3 because there w

2018-08-23 10:18:16 -0500 commented answer How to use tf for custom rotation

Thank you so much! I was going for a much more complicated way to solve this (with translations and rotations). There is

2018-08-21 01:18:08 -0500 received badge  Popular Question (source)
2018-08-20 20:38:52 -0500 edited question How to use tf for custom rotation

How to use tf for custom transformation Hi! I am trying to generate the starting points and the ending points of the fo

2018-08-20 20:33:29 -0500 commented question How to use tf for custom rotation

@PeteBlackerThe3rd Rewrote the question to be more specific. Thanks for the feedback.

2018-08-20 20:32:38 -0500 edited question How to use tf for custom rotation

How to use tf for custom transformation Hi! I am trying to generate the starting points and the ending points of the fo

2018-08-20 17:46:41 -0500 edited question How to use tf for custom rotation

How to use tf for costume transformation Hi! I'm searching for a way to do the following: create a temporary frame (p

2018-08-20 16:09:57 -0500 asked a question How to use tf for custom rotation

How to use tf for costume transformation Hi! I'm searching for a way to do the following: create a temporary frame (p

2018-08-19 13:01:06 -0500 received badge  Popular Question (source)
2018-08-19 08:38:03 -0500 edited question tf2 gimbal lock

tf2 gimbal lock Hi! I need to rotate a point around another point. This is dynamic so there aren't any frames associate

2018-08-19 08:24:59 -0500 commented question tf2 gimbal lock

thanks @gvdhoorn I now updated the question to include what I observe.

2018-08-19 08:23:48 -0500 edited question tf2 gimbal lock

tf2 gimbal lock Hi! I need to rotate a point around another point. This is dynamic so there aren't any frames associate

2018-08-18 18:48:10 -0500 asked a question tf2 gimbal lock

tf2 gimbal lock Hi! I need to rotate a point around another point. This is dynamic so there aren't any frames associate

2018-08-13 05:36:25 -0500 commented question Mapping with Octomap and KITTI

I guess you already solved it by now (can you post back what was the issue to the benefit of others?). In any case, was

2018-08-06 06:08:41 -0500 commented answer How to solve "Couldn't find an AF_INET address for " problem

This was the only thing that worked for me after adding ROS_IP

2018-07-31 05:57:45 -0500 received badge  Popular Question (source)
2018-07-25 05:19:48 -0500 answered a question 3D path planning in an underwater environment with obstacles

Hi! Just to add an option to what already has been said. An implementation of the Lazy Theta * can be found at path_pla

2018-07-06 03:40:11 -0500 received badge  Famous Question (source)