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

MaximeRector's profile - activity

2023-02-21 05:39:50 -0500 received badge  Enlightened (source)
2023-02-21 05:39:50 -0500 received badge  Good Answer (source)
2021-11-18 07:15:08 -0500 received badge  Nice Answer (source)
2021-08-09 01:47:34 -0500 received badge  Student (source)
2021-08-09 01:46:11 -0500 received badge  Famous Question (source)
2021-07-18 02:09:58 -0500 received badge  Famous Question (source)
2020-08-05 13:05:54 -0500 marked best answer ROS on 32bit system

Hi all,

Is it possible to install ROS on a 32 bit system? For the OS i will use tinkerOS v2.0.1. I was thinking about buying the asus tinker board because it is more powerfull than the PI 3, but it has a 32 bit CPU, so I'm not sure it will work.

Sorry if it's a stuppid question.

2019-12-11 10:39:00 -0500 received badge  Taxonomist
2019-05-20 01:47:30 -0500 marked best answer Control motors drone

Hi, I'm planning to control a drone via a ROS-framework through the Pixhawk flight controller. But I'm wondering if there are packages which will let me able to control the drones motors.

Thanks

2019-04-12 06:56:54 -0500 received badge  Famous Question (source)
2018-11-28 14:33:01 -0500 received badge  Popular Question (source)
2018-11-28 14:33:01 -0500 received badge  Famous Question (source)
2018-11-28 14:33:01 -0500 received badge  Notable Question (source)
2018-07-03 03:06:11 -0500 received badge  Notable Question (source)
2018-07-03 03:06:11 -0500 received badge  Famous Question (source)
2018-06-26 02:38:41 -0500 marked best answer mavros: How to use setpoint_raw/local and set the FRAME_BODY_OFFSET_NED flag

Hi,

I'm using the mavros package but I'm not sure on how to use a certain message type. I want to use this: setpoint_raw/local (mavros_msgs/PositionTarget) message type and want to set the FRAME_BODY_OFFSET_NED flag, but I'm not sure on how to do it. Can someone explain this to me?

I was also planning to use the velocity part of the message, but thats quite simple. I will do it as folow:

vel_msg.velocity.x = 0.1;
vel_msg.velocity.y = 0.0;
vel_msg.velocity.z = 0.0;

Of cours I will first declare the publisher and the message.

Message type

Mavros

Thanks!

2018-06-19 20:52:03 -0500 received badge  Popular Question (source)
2018-06-19 20:52:03 -0500 received badge  Notable Question (source)
2018-05-14 13:21:55 -0500 received badge  Famous Question (source)
2018-05-06 02:50:41 -0500 received badge  Famous Question (source)
2018-05-06 02:50:41 -0500 received badge  Notable Question (source)
2018-05-06 02:48:36 -0500 received badge  Famous Question (source)
2018-03-31 13:01:18 -0500 received badge  Famous Question (source)
2018-02-14 05:47:15 -0500 received badge  Notable Question (source)
2017-12-27 10:31:48 -0500 asked a question Mavros move drone, no gps

Mavros move drone, no gps Here am I again... I have been trying and trying but I can't seem to get the hang of it... I

2017-12-27 10:17:04 -0500 received badge  Popular Question (source)
2017-12-25 15:49:30 -0500 marked best answer tf_eigen build error

Hi,

I'm building my workspace with catkin build but I keep getting the following error

/home/pi/ros_catkin_ws/src/mavros/mavros_extras/src/plugins/odom.cpp:20:33: fatal error: tf2_eigen/tf2_eigen.h: No such file or directory
#include <tf2_eigen/tf2_eigen.h>

tf2_eigen is in the list of packages which are done building:

Starting  >>> tf2_eigen                                                                                  
Finished  <<< roslaunch                                 [ 0.7 seconds ]                                  
Starting  >>> tf2_py                                                                                     
Finished  <<< tf2_eigen                                 [ 0.7 seconds ]

I have no idee what I did wrong because I didn't touched the odom.cpp file.

Thank you for your help!

2017-12-24 12:19:14 -0500 received badge  Notable Question (source)
2017-12-24 12:06:20 -0500 received badge  Self-Learner (source)
2017-12-24 12:06:20 -0500 received badge  Teacher (source)
2017-12-24 03:20:46 -0500 edited answer tf_eigen build error

Solved! While looking at the CMakeLists.txt I saw tf2_eigen was not in the find_package list. I don't know if it needs

2017-12-24 03:20:07 -0500 answered a question tf_eigen build error

Solved! While looking at the CMakeLists.txt I saw tf2_eigen was not in the find_package list. I don't know if it needs

2017-12-24 02:53:21 -0500 asked a question tf_eigen build error

tf_eigen build error Hi, I'm building my workspace with catkin build but I keep getting the following error /home/pi

2017-12-23 18:32:41 -0500 received badge  Popular Question (source)
2017-12-23 06:50:09 -0500 asked a question mavros: How to use setpoint_raw/local and set the FRAME_BODY_OFFSET_NED flag

ROS package Hi, I'm using the mavros package but I'm not sure on how to use a certain message type. I want to use this:

2017-12-23 02:12:35 -0500 commented question Simple LED Blink, Pi3 & KINETIC

What language are you using? c++? python?

2017-12-23 02:07:03 -0500 commented question Simple LED Blink, Pi3 & KINETIC

You can start with reading some documentation about ros ( like this ) So you will understand the basics of messages, top

2017-12-23 02:06:42 -0500 commented question Simple LED Blink, Pi3 & KINETIC

You can start by reading some documentation about ros ( like this ) So you will understand the basics of messages, topic

2017-12-22 03:41:25 -0500 asked a question Mavros velocity control

Mavros velocity control Hi there again, I was planning to write some code using mavros which lets a quadcopter changing

2017-12-08 03:26:18 -0500 commented answer mavros set offboard mode

@l4ncelot The velocity control works indeed. I tested it with a real copter and it works, but still need a bit of tweaki

2017-12-08 02:17:06 -0500 received badge  Notable Question (source)
2017-12-05 02:01:03 -0500 received badge  Popular Question (source)
2017-12-03 07:55:03 -0500 marked best answer mavros set offboard mode

Hi,

I'm trying to control a pixhawk via mavros. I have written a test node which set the mode to offboard, arm the drone and send some mavros/setpoint_velocity/cmd_vel messages to change the z velocity. When I run the node the arming works (motors start spinning) but that's it, nothing more. I can't find the problem, This is my first time using mavros, so it's all new for me.

EDIT While running my code I did rostopic echo /mavros/state which results in:

---
header: 
  seq: 6144
  stamp: 
    secs: 1512042153
    nsecs: 557924943
  frame_id: ''
connected: True
armed: True
guided: False
mode: "STABILIZE"
system_status: 3
---

So I believe that setting offboard mode isn't working.

My code:

#include "classheader_dronecontrol.hpp"

DroneControl::DroneControl(ros::NodeHandle n)
{
    initRos(n);
}

void DroneControl::initRos(ros::NodeHandle n)
{
    cout << "Start Initialising" << endl;
    this->state_sub = n.subscribe<mavros_msgs::State>("mavros/state", 10, &DroneControl::stateCallback, this);
    this->arming_client = n.serviceClient<mavros_msgs::CommandBool>("mavros/cmd/arming");
    this->set_mode_client = n.serviceClient<mavros_msgs::SetMode>("mavros/set_mode");
    this->KFarucomarkerpos_sub = n.subscribe("droneposition", 1, &DroneControl::droneControlCallback, this);
    this->move_pub = n.advertise<geometry_msgs::TwistStamped>("mavros/setpoint_velocity/cmd_vel",10);

    cout << "Initialising done!" << endl;

    //the setpoint publishing rate MUST be faster than 2Hz
    ros::Rate rate(20.0);

    // wait for FCU connection
    while(ros::ok() && current_state.connected){
        ros::spinOnce();
        rate.sleep();
    }

    this->move_msg.twist.linear.z = 1.0;

    //send a few setpoints before starting
    for(int i = 100; ros::ok() && i > 0; --i){
        this->move_pub.publish(this->move_msg);
        ros::spinOnce();
        rate.sleep();
    }

    this->offb_set_mode.request.custom_mode = "OFFBOARD";
    this->arm_cmd.request.value = true;
    last_request = ros::Time::now();

    this->set_mode_client.call(this->offb_set_mode);
    this->offb_set_mode.response.mode_sent;
    ROS_INFO("Offboard enabled");
    this->move_pub.publish(this->move_msg);
    ros::spinOnce();
    this->arming_client.call(this->arm_cmd);
    ROS_INFO("Vehicle armed");
    this->move_pub.publish(this->move_msg);

    for(int i = 100; ros::ok() && i > 0; --i){
        this->move_pub.publish(this->move_msg);
        ros::spinOnce();
        rate.sleep();
    }

    ros::spinOnce();
}

void DroneControl::stateCallback(const mavros_msgs::State::ConstPtr& msg)
{
    this->current_state = *msg;
}

EDIT2

I used the provided starting point by 0xd1ma and used his answer for following code. It's a small program where I used roll = 30°, pitch = 30°, yaw = 0° and throttle 0.9. The messages will be published 500 times. The drone (in gazebo) armed perfectly and moved for 5 seconds with a velocity of 0.25 in z-axes (just some test code to get him of the ground), after this the testDroneControl() function gets called, but the drone starts moving randomly and for sure not in the chosen direction.

void DroneControl::testDroneControl()
{
    ros::Rate rate(50.0);

    this->cmd_att.pose.position.x = 0.0;
    this->cmd_att.pose.position.y = 0.0;
    this->cmd_att.pose.position.z = 0.0;

    tf::Quaternion mav_orientation = tf::createQuaternionFromRPY(0.523598775, 0.523598775, 0 );

    this->cmd_att.pose.orientation.x = mav_orientation.x();
    this->cmd_att.pose.orientation.y = mav_orientation.y();
    this->cmd_att.pose.orientation.z = mav_orientation.z();
    this->cmd_att.pose.orientation.w = mav_orientation.w();

    this->cmd_thr.data = 0.9;

    for(int i=0; i<500; i++){
        cout << this->cmd_att.pose ...
(more)
2017-12-03 07:55:02 -0500 commented answer mavros set offboard mode

@0xd1ma can you supplie me with an full working example code, so I can test if everything works? Because till now I have

2017-12-02 10:35:16 -0500 edited question Mavros not able to arm

Mavros not able to arm Hi, I'm using mavros combined with a pixhawk, running PX4 firmware. For starting I'm using this