pilz_extensions_demo_node.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Pilz GmbH & Co. KG
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "ros/ros.h"
18 
21 
24 
28 int main(int argc, char **argv)
29 {
30  ros::init (argc, argv, "demo_extension");
31  ros::AsyncSpinner spinner(1);
32  spinner.start();
33  ros::NodeHandle node_handle("~");
34 
35  // Joints limits interface
38  pilz_extensions::joint_limits_interface::getJointLimits("joint_1", node_handle, joint_limits_extended);
39 
40  ROS_INFO_STREAM("Acceleration Limit: " << joint_limits_extended.max_acceleration);
41  ROS_INFO_STREAM("Deceleration Limit: " << joint_limits_extended.max_deceleration);
42 
43 
44 
45  ros::shutdown();
46 
47  return 0;
48 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
double max_deceleration
maximum deceleration MUST(!) be negative
bool getJointLimits(const std::string &joint_name, const ros::NodeHandle &nh,::pilz_extensions::joint_limits_interface::JointLimits &limits)
#define ROS_INFO_STREAM(args)
int main(int argc, char **argv)
Extends joint_limits_interface::JointLimits with a deceleration parameter.
ROSCPP_DECL void shutdown()


pilz_extensions
Author(s):
autogenerated on Mon Apr 6 2020 03:17:24